| 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.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.table | Provides classes and interfaces for dealing with
 javax.swing.JTable. | 
| Modifier and Type | Class and Description | 
|---|---|
| protected class  | JList.AccessibleJListThis class implements accessibility support for the
  JListclass. | 
| class  | JTableThe  JTableis used to display and edit regular two-dimensional tables
 of cells. | 
| protected class  | JTable.AccessibleJTableThis class implements accessibility support for the
  JTableclass. | 
| Modifier and Type | Method and Description | 
|---|---|
| ListSelectionListener[] | DefaultListSelectionModel. getListSelectionListeners()Returns an array of all the list selection listeners
 registered on this  DefaultListSelectionModel. | 
| ListSelectionListener[] | JList. getListSelectionListeners()Returns an array of all the  ListSelectionListeners added
 to thisJListby way ofaddListSelectionListener. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | DefaultListSelectionModel. addListSelectionListener(ListSelectionListener l)Add a listener to the list that's notified each time a change
 to the selection occurs. | 
| void | ListSelectionModel. addListSelectionListener(ListSelectionListener x)Add a listener to the list that's notified each time a change
 to the selection occurs. | 
| void | JList. addListSelectionListener(ListSelectionListener listener)Adds a listener to the list, to be notified each time a change to the
 selection occurs; the preferred way of listening for selection state
 changes. | 
| void | DefaultListSelectionModel. removeListSelectionListener(ListSelectionListener l)Remove a listener from the list that's notified each time a
 change to the selection occurs. | 
| void | ListSelectionModel. removeListSelectionListener(ListSelectionListener x)Remove a listener from the list that's notified each time a
 change to the selection occurs. | 
| void | JList. removeListSelectionListener(ListSelectionListener listener)Removes a selection listener from the list. | 
| Modifier and Type | Class and Description | 
|---|---|
| protected class  | BasicComboPopup.ListSelectionHandlerAs of Java 2 platform v 1.4, this class is now obsolete, doesn't do anything, and
 is only included for backwards API compatibility. | 
| protected class  | BasicFileChooserUI.SelectionListener | 
| class  | BasicListUI.ListSelectionHandlerThe ListSelectionListener that's added to the JLists selection
 model at installUI time, and whenever the JList.selectionModel property
 changes. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected ListSelectionListener | BasicComboPopup. listSelectionListenerThis protected field is implementation specific. | 
| protected ListSelectionListener | BasicListUI. listSelectionListener | 
| Modifier and Type | Method and Description | 
|---|---|
| protected ListSelectionListener | BasicComboPopup. createListSelectionListener()Creates a list selection listener that watches for selection changes in
 the popup's list. | 
| protected ListSelectionListener | BasicListUI. createListSelectionListener()Creates an instance of ListSelectionHandler that's added to
 the JLists by selectionModel as needed. | 
| ListSelectionListener | BasicFileChooserUI. createListSelectionListener(JFileChooser fc) | 
| Modifier and Type | Method and Description | 
|---|---|
| ListSelectionListener | MetalFileChooserUI. createListSelectionListener(JFileChooser fc)Creates a selection listener for the list of files and directories. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | DefaultTableColumnModelThe standard column-handler for a  JTable. | 
 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, 2017, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.