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