Generated by
JDiff

Class javax.swing.JList

Documentation changed from old to new.

Changed Constructors
JList(Object[]) Documentation changed from old to new.
Constructs a JList that displays the elements in the specified array.
JList(Vector) Documentation changed from old to new.
Constructs a JList that displays the elements in the specified Vector.
JList(ListModel) Documentation changed from old to new.
Constructs a JList that displays the elements in the specified non-null model.
JList(void) Documentation changed from old to new.
Constructs a JList with an empty model.
 

Changed Methods
void addListSelectionListener(ListSelectionListener) Documentation changed from old to new.
Adds a listener to the list that's notified each time a change to the selection occurs.
void addSelectionInterval(int, int) Documentation changed from old to new.
Sets the selection to be the union of the specified interval with current selection.
void clearSelection() Documentation changed from old to new.
Clears the selection - after calling this method isSelectionEmpty will return true.
ListSelectionModel createSelectionModel() Documentation changed from old to new.
Returns an instance of DefaultListSelectionModel.
void ensureIndexIsVisible(int) Documentation changed from old to new.
Scrolls the viewport to make the specified cell completely visible.
void fireSelectionValueChanged(int, int, boolean) Documentation changed from old to new.
Notifies JList ListSelectionListeners that the selection model has changed.
AccessibleContext getAccessibleContext() Documentation changed from old to new.
Gets the AccessibleContext associated with this JList.
int getAnchorSelectionIndex() Documentation changed from old to new.
Returns the first index argument from the most recent addSelectionModel or setSelectionInterval call.
Rectangle getCellBounds(int, int) Documentation changed from old to new.
Returns the bounds of the specified range of items in JList coordinates.
ListCellRenderer getCellRenderer() Documentation changed from old to new.
Returns the object that renders the list items.
int getFirstVisibleIndex() Documentation changed from old to new.
Returns the index of the cell in the upper left corner of the JList or -1 if nothing is visible or the list is empty.
int getFixedCellHeight() Documentation changed from old to new.
Returns the fixed cell height value -- the value specified by setting the fixedCellHeight property rather than that calculated from the list elements.
int getFixedCellWidth() Documentation changed from old to new.
Returns the fixed cell width value -- the value specified by setting the fixedCellWidth property rather than that calculated from the list elements.
int getLastVisibleIndex() Documentation changed from old to new.
Returns the index of the cell in the lower right corner of the JList or -1 if nothing is visible or the list is empty.
int getLeadSelectionIndex() Documentation changed from old to new.
Returns the second index argument from the most recent addSelectionInterval or setSelectionInterval call.
int getMaxSelectionIndex() Documentation changed from old to new.
Returns the largest selected cell index.
int getMinSelectionIndex() Documentation changed from old to new.
Returns the smallest selected cell index.
ListModel getModel() Documentation changed from old to new.
Returns the data model that holds the list of items displayed by the JList component.
Dimension getPreferredScrollableViewportSize() Documentation changed from old to new.
Computes the size of the viewport needed to display visibleRowCount rows.
Object getPrototypeCellValue() Documentation changed from old to new.
Returns the cell width of the "prototypical cell" -- a cell used for the calculation of cell widths because it has the same value as all other list items.
int getScrollableBlockIncrement(Rectangle, int, int) Documentation changed from old to new.
Returns the block increment amount.
boolean getScrollableTracksViewportHeight() Documentation changed from old to new.
Returns true if this JList is displayed in a JViewport and the viewport is taller than JList's preferred height; otherwise returns false.
boolean getScrollableTracksViewportWidth() Documentation changed from old to new.
Returns true if this JList is displayed in a JViewport and the viewport is wider than JList's preferred width; otherwise returns false.
int getScrollableUnitIncrement(Rectangle, int, int) Documentation changed from old to new.
Returns the distance to scroll to expose the next or previous row (for vertical scrolling) or character (for horizontal scrolling).
int getSelectedIndex() Documentation changed from old to new.
Returns the first selected index; returns -1 if there is no selected item.
int[] getSelectedIndices() Documentation changed from old to new.
Returns an array of all of the selected indices in increasing order.
Object getSelectedValue() Documentation changed from old to new.
Returns the first selected value or null if the selection is empty.
Object[] getSelectedValues() Documentation changed from old to new.
Returns an array of the values for the selected cells.
Color getSelectionBackground() Documentation changed from old to new.
Returns the background color for selected cells.
Color getSelectionForeground() Documentation changed from old to new.
Returns the selection foreground color.
int getSelectionMode() Documentation changed from old to new.
Returns whether single-item or multiple-item selections are allowed.
ListSelectionModel getSelectionModel() Documentation changed from old to new.
Returns the value of the current selection model.
ListUI getUI() Documentation changed from old to new.
Returns the look and feel (L&F) object that renders this component.
String getUIClassID() Documentation changed from old to new.
Returns the suffix used to construct the name of the look and feel (L&F) class used to render this component.
boolean getValueIsAdjusting() Documentation changed from old to new.
Returns the value of the data model's isAdjusting property.
int getVisibleRowCount() Documentation changed from old to new.
Returns the preferred number of visible rows.
Point indexToLocation(int) Documentation changed from old to new.
Returns the origin of the specified item in JList coordinates.
boolean isSelectedIndex(int) Documentation changed from old to new.
Returns true if the specified index is selected.
boolean isSelectionEmpty() Documentation changed from old to new.
Returns true if nothing is selected.
int locationToIndex(Point) Documentation changed from old to new.
Converts a point in JList coordinates to the index of the cell at that location.
String paramString() Documentation changed from old to new.
Returns a string representation of this JList.
void removeListSelectionListener(ListSelectionListener) Documentation changed from old to new.
Removes a listener from the list that's notified each time a change to the selection occurs.
void removeSelectionInterval(int, int) Documentation changed from old to new.
Sets the selection to be the set difference of the specified interval and the current selection.
void setCellRenderer(ListCellRenderer) Documentation changed from old to new.
Sets the delegate that's used to paint each cell in the list.
void setFixedCellHeight(int) Documentation changed from old to new.
Sets the height of every cell in the list.
void setFixedCellWidth(int) Documentation changed from old to new.
Sets the width of every cell in the list.
void setModel(ListModel) Documentation changed from old to new.
Sets the model that represents the contents or "value" of the list and clears the list selection after notifying PropertyChangeListeners.
void setPrototypeCellValue(Object) Documentation changed from old to new.
Computes the fixedCellWidth and fixedCellHeight properties by configuring the cellRenderer to index equals zero for the specified value and then computing the renderer component's preferred size.
void setSelectedIndex(int) Documentation changed from old to new.
Selects a single cell.
void setSelectedIndices(int[]) Documentation changed from old to new.
Selects a set of cells.
void setSelectedValue(Object, boolean) Documentation changed from old to new.
Selects the specified object from the list.
void setSelectionBackground(Color) Documentation changed from old to new.
Sets the background color for selected cells.
void setSelectionForeground(Color) Documentation changed from old to new.
Sets the foreground color for selected cells.
void setSelectionInterval(int, int) Documentation changed from old to new.
Selects the specified interval.
void setSelectionMode(int) Documentation changed from old to new.
Determines whether single-item or multiple-item selections are allowed.
void setSelectionModel(ListSelectionModel) Documentation changed from old to new.
Sets the selectionModel for the list to a non-null ListSelectionModel implementation.
void setValueIsAdjusting(boolean) Documentation changed from old to new.
Sets the data model's isAdjusting property to true so that a single event will be generated when all of the selection events have finished (for example when the mouse is being dragged over the list in selection mode).
void setVisibleRowCount(int) Documentation changed from old to new.
Sets the preferred number of rows in the list that can be displayed without a scollbar as determined by the nearest JViewport ancestor if any.
void updateUI() Documentation changed from old to new.
Sets the UI property with the "ListUI" from the current default UIFactory.
void setListData(Object[]) Documentation changed from old to new.
Constructs a ListModel from an array of objects and then applies setModel to it.
void setListData(Vector) Documentation changed from old to new.
Constructs a ListModel from a Vector and then applies setModel to it.
void setUI(ListUI) Documentation changed from old to new.
Sets the look and feel (L&F) object that renders this component.