C2.java revision 3233:b5d08bc0d224
1164190Sjkoshy/* 2164190Sjkoshy * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. 3164190Sjkoshy * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4164190Sjkoshy * 5164190Sjkoshy * This code is free software; you can redistribute it and/or modify it 6164190Sjkoshy * under the terms of the GNU General Public License version 2 only, as 7164190Sjkoshy * published by the Free Software Foundation. 8164190Sjkoshy * 9164190Sjkoshy * This code is distributed in the hope that it will be useful, but WITHOUT 10164190Sjkoshy * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11164190Sjkoshy * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12164190Sjkoshy * version 2 for more details (a copy is included in the LICENSE file that 13164190Sjkoshy * accompanied this code). 14164190Sjkoshy * 15164190Sjkoshy * You should have received a copy of the GNU General Public License version 16164190Sjkoshy * 2 along with this work; if not, write to the Free Software Foundation, 17164190Sjkoshy * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18164190Sjkoshy * 19164190Sjkoshy * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20164190Sjkoshy * or visit www.oracle.com if you need additional information or have any 21164190Sjkoshy * questions. 22164190Sjkoshy */ 23164190Sjkoshy 24164190Sjkoshypackage pkg1; 25164190Sjkoshy 26164190Sjkoshyimport java.io.ObjectInputStream; 27164190Sjkoshyimport java.io.IOException; 28164190Sjkoshyimport java.io.Serializable; 29164190Sjkoshy 30164190Sjkoshy/** 31164190Sjkoshy * A class comment for testing. 32164190Sjkoshy * 33164190Sjkoshy * @author Bhavesh Patel 34164190Sjkoshy * @see C1 35164190Sjkoshy * @since JDK1.0 36165317Sjkoshy */ 37164190Sjkoshy 38164190Sjkoshypublic class C2 implements Serializable { 39164190Sjkoshy 40164190Sjkoshy /** 41164190Sjkoshy * This field indicates title. 42164190Sjkoshy */ 43164190Sjkoshy String title; 44164190Sjkoshy 45164190Sjkoshy public static enum ModalType { 46164190Sjkoshy NO_EXCLUDE 47164190Sjkoshy }; 48164190Sjkoshy 49164190Sjkoshy /** 50164190Sjkoshy * Constructor. 51164190Sjkoshy * 52210332Skaiw */ 53164190Sjkoshy public C2() { 54164190Sjkoshy 55164190Sjkoshy } 56164190Sjkoshy 57164190Sjkoshy public C2(String title) { 58164190Sjkoshy 59164190Sjkoshy } 60164190Sjkoshy 61164190Sjkoshy /** 62164190Sjkoshy * Set visible. 63164190Sjkoshy * 64164190Sjkoshy * @param set boolean 65164190Sjkoshy * @since 1.4 66164190Sjkoshy * @deprecated As of JDK version 1.5, replaced by 67164190Sjkoshy * {@link C1#setUndecorated(boolean) setUndecorated(boolean)}. 68164190Sjkoshy */ 69164190Sjkoshy @Deprecated 70164190Sjkoshy public void setVisible(boolean set) { 71164190Sjkoshy } 72164190Sjkoshy 73164190Sjkoshy /** 74164190Sjkoshy * Reads the object stream. 75164190Sjkoshy * 76164190Sjkoshy * @param s ObjectInputStream 77164190Sjkoshy * @throws IOException 78165317Sjkoshy * @deprecated As of JDK version 1.5, replaced by 79165317Sjkoshy * {@link C1#setUndecorated(boolean) setUndecorated(boolean)}. 80165317Sjkoshy */ 81164190Sjkoshy @Deprecated 82164190Sjkoshy public void readObject(ObjectInputStream s) throws IOException { 83164190Sjkoshy } 84164190Sjkoshy} 85164190Sjkoshy