JList
| Modifier and Type | Method and Description |
|---|---|
| public void | addListDataListener(ListDataListener
the l)ListDataListener to be addedAdds a listener to the list that's notified each time a change to the data model occurs. |
| public E | Returns: the value atindexthe requested index index)Returns the value at the specified index. |
| public int | |
| public void | removeListDataListener(ListDataListener
the l)ListDataListener to be removedRemoves a listener from the list that's notified each time a change to the data model occurs. |
| addListDataListener | back to summary |
|---|---|
| public void addListDataListener(ListDataListener l) Adds a listener to the list that's notified each time a change to the data model occurs.
| |
| getElementAt | back to summary |
|---|---|
| public E getElementAt(int index) Returns the value at the specified index.
| |
| getSize | back to summary |
|---|---|
| public int getSize() Returns the length of the list.
| |
| removeListDataListener | back to summary |
|---|---|
| public void removeListDataListener(ListDataListener l) Removes a listener from the list that's notified each time a change to the data model occurs.
| |