| 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| Component | DefaultListCellRenderer. getListCellRendererComponent(JList<?> list,
                            Object value,
                            int index,
                            boolean isSelected,
                            boolean cellHasFocus) | 
| Component | ListCellRenderer. getListCellRendererComponent(JList<? extends E> list,
                            E value,
                            int index,
                            boolean isSelected,
                            boolean cellHasFocus)Return a component that has been configured to display the specified
 value. | 
| Constructor and Description | 
|---|
| AccessibleJListChild(JList<E> parent,
                    int indexInParent) | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract Rectangle | ListUI. getCellBounds(JList list,
             int index1,
             int index2)Returns the bounding rectangle, in the given list's coordinate system,
 for the range of cells specified by the two indices. | 
| abstract Point | ListUI. indexToLocation(JList list,
               int index)Returns the origin in the given  JList, of the specified item,
 in the list's coordinate system. | 
| abstract int | ListUI. locationToIndex(JList list,
               Point location)Returns the cell index in the specified  JListclosest to the
 given location in the list's coordinate system. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected JList | BasicListUI. list | 
| protected JList | BasicComboPopup. listThis protected field is implementation specific. | 
| protected JList | BasicComboBoxUI. listBox | 
| Modifier and Type | Method and Description | 
|---|---|
| protected JList | BasicComboPopup. createList()Creates the JList used in the popup to display
 the items in the combo box model. | 
| JList | BasicComboPopup. getList()Implementation of ComboPopup.getList(). | 
| JList | ComboPopup. getList()Returns the list that is being used to draw the items in the combo box. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected MouseListener | BasicFileChooserUI. createDoubleClickListener(JFileChooser fc,
                         JList list) | 
| Rectangle | BasicListUI. getCellBounds(JList list,
             int index1,
             int index2)Returns the bounding rectangle, in the given list's coordinate system,
 for the range of cells specified by the two indices. | 
| Component | BasicComboBoxRenderer. getListCellRendererComponent(JList list,
                            Object value,
                            int index,
                            boolean isSelected,
                            boolean cellHasFocus) | 
| Point | BasicListUI. indexToLocation(JList list,
               int index)Returns the origin in the given  JList, of the specified item,
 in the list's coordinate system. | 
| int | BasicListUI. locationToIndex(JList list,
               Point location)Returns the cell index in the specified  JListclosest to the
 given location in the list's coordinate system. | 
| Constructor and Description | 
|---|
| DoubleClickListener(JList list) | 
| Modifier and Type | Field and Description | 
|---|---|
| protected JList | MetalComboBoxButton. listBox | 
| Modifier and Type | Method and Description | 
|---|---|
| Component | MetalFileChooserUI.FilterComboBoxRenderer. getListCellRendererComponent(JList list,
                            Object value,
                            int index,
                            boolean isSelected,
                            boolean cellHasFocus) | 
| Constructor and Description | 
|---|
| MetalComboBoxButton(JComboBox cb,
                   Icon i,
                   boolean onlyIcon,
                   CellRendererPane pane,
                   JList list) | 
| MetalComboBoxButton(JComboBox cb,
                   Icon i,
                   CellRendererPane pane,
                   JList list) | 
| SingleClickListener(JList list) | 
| Modifier and Type | Method and Description | 
|---|---|
| Rectangle | MultiListUI. getCellBounds(JList a,
             int b,
             int c)Invokes the  getCellBoundsmethod on each UI handled by this object. | 
| Point | MultiListUI. indexToLocation(JList a,
               int b)Invokes the  indexToLocationmethod on each UI handled by this object. | 
| int | MultiListUI. locationToIndex(JList a,
               Point b)Invokes the  locationToIndexmethod 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, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.