Uses of Class javax.swing.JComboBox (Java Platform SE 8 )
Date: 2026-04-24

## Uses of Class
javax.swing.JComboBox

- Packages that use JComboBox
  Package | Description
  --- | ---
  javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
  javax.swing.plaf | Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities.
  javax.swing.plaf.basic | Provides user interface objects built according to the Basic look and feel.
  javax.swing.plaf.metal | Provides user interface objects built according to the Java look and feel (once codenamed Metal), which is the default look and feel.
  javax.swing.plaf.multi | Provides user interface objects that combine two or more look and feels.

- - ### Uses of JComboBox in javax.swing

    Constructors in javax.swing with parameters of type JComboBox
    Constructor and Description
    `DefaultCellEditor(JComboBox comboBox)` Constructs a `DefaultCellEditor` object that uses a combo box.

  - ### Uses of JComboBox in javax.swing.plaf

    Methods in javax.swing.plaf with parameters of type JComboBox
    Modifier and Type | Method and Description
    --- | ---
    `abstract boolean` | ComboBoxUI.`isFocusTraversable(JComboBox c)` Determine whether or not the combo box itself is traversable
    `abstract boolean` | ComboBoxUI.`isPopupVisible(JComboBox c)` Determine the visibility of the popup
    `abstract void` | ComboBoxUI.`setPopupVisible(JComboBox c, boolean v)` Set the visibility of the popup

  - ### Uses of JComboBox in javax.swing.plaf.basic

    Fields in javax.swing.plaf.basic declared as JComboBox
    Modifier and Type | Field and Description
    --- | ---
    `protected JComboBox` | BasicComboBoxUI.`comboBox`
    `protected JComboBox` | BasicComboPopup.`comboBox`

    Methods in javax.swing.plaf.basic with parameters of type JComboBox
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | BasicComboBoxUI.`isFocusTraversable(JComboBox c)` Determines if the JComboBox is focus traversable.
    `boolean` | BasicComboBoxUI.`isPopupVisible(JComboBox c)` Tells if the popup is visible or not.
    `void` | BasicComboBoxUI.`setPopupVisible(JComboBox c, boolean v)` Hides the popup.

    Constructors in javax.swing.plaf.basic with parameters of type JComboBox
    Constructor and Description
    `BasicComboPopup(JComboBox combo)`

  - ### Uses of JComboBox in javax.swing.plaf.metal

    Fields in javax.swing.plaf.metal declared as JComboBox
    Modifier and Type | Field and Description
    --- | ---
    `protected JComboBox` | MetalComboBoxButton.`comboBox`

    Methods in javax.swing.plaf.metal that return JComboBox
    Modifier and Type | Method and Description
    --- | ---
    `JComboBox` | MetalComboBoxButton.`getComboBox()`

    Methods in javax.swing.plaf.metal with parameters of type JComboBox
    Modifier and Type | Method and Description
    --- | ---
    `void` | MetalComboBoxButton.`setComboBox(JComboBox cb)`

    Constructors in javax.swing.plaf.metal with parameters of type JComboBox
    Constructor and Description
    `MetalComboBoxButton(JComboBox cb, Icon i, boolean onlyIcon, CellRendererPane pane, JList list)`
    `MetalComboBoxButton(JComboBox cb, Icon i, CellRendererPane pane, JList list)`
    `MetalComboPopup(JComboBox cBox)` Deprecated.

  - ### Uses of JComboBox in javax.swing.plaf.multi

    Methods in javax.swing.plaf.multi with parameters of type JComboBox
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | MultiComboBoxUI.`isFocusTraversable(JComboBox a)` Invokes the `isFocusTraversable` method on each UI handled by this object.
    `boolean` | MultiComboBoxUI.`isPopupVisible(JComboBox a)` Invokes the `isPopupVisible` method on each UI handled by this object.
    `void` | MultiComboBoxUI.`setPopupVisible(JComboBox a, boolean b)` Invokes the `setPopupVisible` method on each UI handled by this object.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.