jdk/src/share/classes/java/awt/Choice.java
changeset 16734 da1901d79073
parent 15318 607db339afcc
child 20451 4cedf4e1560a
equal deleted inserted replaced
16733:9267ec7004a1 16734:da1901d79073
     1 /*
     1 /*
     2  * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     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
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    32 import java.io.ObjectInputStream;
    32 import java.io.ObjectInputStream;
    33 import java.io.IOException;
    33 import java.io.IOException;
    34 
    34 
    35 import javax.accessibility.*;
    35 import javax.accessibility.*;
    36 
    36 
    37 import javax.tools.annotation.GenerateNativeHeader;
       
    38 
    37 
    39 /**
    38 /**
    40  * The <code>Choice</code> class presents a pop-up menu of choices.
    39  * The <code>Choice</code> class presents a pop-up menu of choices.
    41  * The current choice is displayed as the title of the menu.
    40  * The current choice is displayed as the title of the menu.
    42  * <p>
    41  * <p>
    69  * <p>
    68  * <p>
    70  * @author      Sami Shaio
    69  * @author      Sami Shaio
    71  * @author      Arthur van Hoff
    70  * @author      Arthur van Hoff
    72  * @since       JDK1.0
    71  * @since       JDK1.0
    73  */
    72  */
    74 /* No native methods here, but the constants are needed in the supporting JNI code */
       
    75 @GenerateNativeHeader
       
    76 public class Choice extends Component implements ItemSelectable, Accessible {
    73 public class Choice extends Component implements ItemSelectable, Accessible {
    77     /**
    74     /**
    78      * The items for the <code>Choice</code>.
    75      * The items for the <code>Choice</code>.
    79      * This can be a <code>null</code> value.
    76      * This can be a <code>null</code> value.
    80      * @serial
    77      * @serial