1/* 2 * Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24package pkg1; 25 26import java.io.IOException; 27import java.io.Serializable; 28 29/** 30 * A class comment for testing. 31 * 32 * @author Bhavesh Patel 33 * @since JDK1.0 34 */ 35public class C1 implements Serializable { 36 37 /** 38 * This field indicates whether the C1 is undecorated. 39 * 40 * @see #setUndecorated(boolean) 41 * @since 1.4 42 * @serial 43 * @deprecated As of JDK version 1.5, replaced by 44 * {@link C1#setUndecorated(boolean) setUndecorated(boolean)}. 45 */ 46 @Deprecated 47 public boolean undecorated = false; 48 49 /** 50 * This enum specifies the possible modal exclusion types. 51 * 52 * @since 1.6 53 */ 54 public static enum ModalExclusionType { 55 56 /** 57 * No modal exclusion. 58 */ 59 NO_EXCLUDE, 60 /** 61 * <code>APPLICATION_EXCLUDE</code> indicates that a top-level window 62 * won't be blocked by any application-modal dialogs. Also, it isn't 63 * blocked by document-modal dialogs from outside of its child hierarchy. 64 */ 65 APPLICATION_EXCLUDE 66 }; 67 68 /** 69 * Constructor. 70 * 71 * @param title the title 72 * @param test boolean value 73 * @exception IllegalArgumentException if the <code>owner</code>'s 74 * <code>GraphicsConfiguration</code> is not from a screen device 75 */ 76 public C1(String title, boolean test) { 77 } 78 79 public C1(String title) { 80 } 81 82 /** 83 * Method comments. 84 * @param undecorated <code>true</code> if no decorations are 85 * to be enabled; 86 * <code>false</code> if decorations are to be enabled. 87 * @see #readObject() 88 * @since 1.4 89 */ 90 public void setUndecorated(boolean undecorated) { 91 /* Make sure we don't run in the middle of peer creation.*/ 92 } 93 94 /** 95 * @throws java.io.IOException on error 96 * @see #setUndecorated(boolean) 97 */ 98 public void readObject() throws IOException { 99 } 100} 101