Generated by
JDiff

Class javax.swing.JList

Documentation changed from old to new.

Changed Constructors
JList(ListModel) Documentation changed from old to new.
Constructs a JList that displays the elements in the specified non-null model.
 

Added Methods
boolean getDragEnabled() Gets the dragEnabled property.
int getLayoutOrientation() Returns JList.VERTICAL if the layout is a single column of cells or JList.VERTICAL_WRAP if the layout is "newspaper style" with the content flowing vertically then horizontally or JList.HORIZONTAL_WRAP if the layout is "newspaper style" with the content flowing horizontally then vertically.
ListSelectionListener[] getListSelectionListeners() Returns an array of all the ListSelectionListeners added to this JList with addListSelectionListener().
int getNextMatch(String, int, Bias) Returns the next list element that starts with a prefix.
String getToolTipText(MouseEvent) Overrides JComponent's getToolTipText method in order to allow the renderer's tips to be used if it has text set.
void setDragEnabled(boolean) Sets the dragEnabled property which must be true to enable automatic drag handling (the first part of drag and drop) on this component.
void setLayoutOrientation(int) Defines the way list cells are layed out.
 

Changed Methods
void addSelectionInterval(int, int) Documentation changed from old to new.
Sets the selection to be the union of the specified interval with current selection.
int getFirstVisibleIndex() Documentation changed from old to new.
Returns the index of the first visible cell.
int getLastVisibleIndex() Documentation changed from old to new.
Returns the index of the last visible cell.
Dimension getPreferredScrollableViewportSize() Documentation changed from old to new.
Computes the size of the viewport needed to display visibleRowCount rows.
int getScrollableBlockIncrement(Rectangle, int, int) Documentation changed from old to new.
Returns the distance to scroll to expose the next or previous block.
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 or if the layout orientation is VERTICAL_WRAP and the number of visible rows is <= 0; 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; or if the layout orientation is HORIZONTAL_WRAP and the visible row count is <= 0; otherwise returns false.
Object[] getSelectedValues() Documentation changed from old to new.
Returns an array of the values for the selected cells.
ListUI getUI() Documentation changed from old to new.
Returns the look and feel (L&F) object that renders this component.
int locationToIndex(Point) Documentation changed from old to new.
Convert a point in JList coordinates to the closest index of the cell at that location.
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 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 setVisibleRowCount(int) Documentation changed from old to new.
Sets the preferred number of rows in the list that can be displayed without a scrollbar as determined by the nearest JViewport ancestor if any.
void updateUI() Documentation changed from old to new.
Resets the UI property with the value from the current look and feel.
void setUI(ListUI) Documentation changed from old to new.
Sets the look and feel (L&F) object that renders this component.
 

Added Fields
int HORIZONTAL_WRAP Indicates "newspaper style" with the cells flowing horizontally then vertically.
int VERTICAL Indicates the default layout: one column of cells.
int VERTICAL_WRAP Indicates "newspaper style" layout with the cells flowing vertically then horizontally.