232N/A/*
553N/A * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
232N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
232N/A *
232N/A * This code is free software; you can redistribute it and/or modify it
232N/A * under the terms of the GNU General Public License version 2 only, as
553N/A * published by the Free Software Foundation. Oracle designates this
232N/A * particular file as subject to the "Classpath" exception as provided
553N/A * by Oracle in the LICENSE file that accompanied this code.
232N/A *
232N/A * This code is distributed in the hope that it will be useful, but WITHOUT
232N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
232N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
232N/A * version 2 for more details (a copy is included in the LICENSE file that
232N/A * accompanied this code).
232N/A *
232N/A * You should have received a copy of the GNU General Public License version
232N/A * 2 along with this work; if not, write to the Free Software Foundation,
232N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
232N/A *
553N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
553N/A * or visit www.oracle.com if you need additional information or have any
553N/A * questions.
232N/A */
232N/A
232N/Apackage pkg1;
232N/A
232N/Aimport java.io.IOException;
232N/Aimport java.io.Serializable;
232N/A
232N/A/**
232N/A * A class comment for testing.
232N/A *
232N/A * @author Bhavesh Patel
232N/A * @see C2
232N/A * @since JDK1.0
232N/A */
232N/A
232N/Apublic class C1 implements Serializable {
232N/A
232N/A /**
232N/A * This field indicates whether the C1 is undecorated.
232N/A *
232N/A * @see #setUndecorated(boolean)
232N/A * @since 1.4
232N/A * @serial
232N/A * @deprecated As of JDK version 1.5, replaced by
232N/A * {@link C1#setUndecorated(boolean) setUndecorated(boolean)}.
232N/A */
232N/A @Deprecated
232N/A public boolean undecorated = false;
232N/A
232N/A private String title;
232N/A
232N/A /**
232N/A * This enum specifies the possible modal exclusion types.
232N/A *
232N/A * @since 1.6
232N/A */
232N/A public static enum ModalExclusionType {
232N/A /**
232N/A * No modal exclusion.
232N/A */
232N/A NO_EXCLUDE,
232N/A /**
232N/A * <code>APPLICATION_EXCLUDE</code> indicates that a top-level window
232N/A * won't be blocked by any application-modal dialogs. Also, it isn't
232N/A * blocked by document-modal dialogs from outside of its child hierarchy.
232N/A */
232N/A APPLICATION_EXCLUDE
232N/A };
232N/A
232N/A /**
232N/A * Constructor.
232N/A *
232N/A * @param title the title
232N/A * @param test boolean value
232N/A * @exception IllegalArgumentException if the <code>owner</code>'s
232N/A * <code>GraphicsConfiguration</code> is not from a screen device
232N/A * @exception HeadlessException
232N/A */
232N/A public C1(String title, boolean test) {
232N/A
232N/A }
232N/A
232N/A public C1(String title) {
232N/A
232N/A }
232N/A
232N/A /**
232N/A * Method comments.
232N/A * @param undecorated <code>true</code> if no decorations are
232N/A * to be enabled;
232N/A * <code>false</code> if decorations are to be enabled.
232N/A * @see #readObject()
232N/A * @since 1.4
232N/A */
232N/A public void setUndecorated(boolean undecorated) {
232N/A /* Make sure we don't run in the middle of peer creation.*/
232N/A }
232N/A
232N/A /**
232N/A * @see #setUndecorated(boolean)
232N/A */
232N/A public void readObject() throws IOException {
232N/A
232N/A }
232N/A}