< prev index next >

## src/java.desktop/share/classes/javax/swing/text/html/OptionComboBoxModel.java

Print this page

    rev 48858 : Work in progress for JDK-6303622
    Use generic in Swing components like JComboBox
    1. Added generic return type and parameter type for JComboBox.
    2. Modified JList related classes as well.
    3. Reverted the changes made to "getSelectedValues" as suggested by Joe.
    4. Modified files that were failing on Linux and Mac as well.

    @@ -38,11 +38,11 @@
      * attribute set wins.
      *
       @author Sunita Mani
      */
     @SuppressWarnings("serial") // Superclass is not serializable across versions
    -class OptionComboBoxModel<E> extends DefaultComboBoxModel<E> implements Serializable {
    +class OptionComboBoxModel extends DefaultComboBoxModel<Option> implements Serializable {

         private Option selectedOption = null;

         /**
          * Stores the Option that has been marked its

< prev index next >