Top Description Inners Fields Constructors Methods
javax.swing

public Class JList<E>

extends JComponent
implements Scrollable, Accessible
Class Inheritance
All Implemented Interfaces
javax.accessibility.Accessible, javax.swing.Scrollable
Annotations
@JavaBean
defaultProperty:UI
description:A component which allows for the selection of one or more objects from a list.
@SwingContainer:false
@SuppressWarnings:serial
Type Parameters
<E>
the type of the elements of this list
Imports
java.awt.Color, .Component, .Container, .Cursor, .Dimension, .Font, .FontMetrics, .GraphicsEnvironment, .HeadlessException, .IllegalComponentStateException, .Insets, .Point, .Rectangle, java.awt.event.FocusListener, .MouseEvent, java.beans.BeanProperty, .JavaBean, .PropertyChangeEvent, .PropertyChangeListener, .Transient, java.io.IOException, .ObjectOutputStream, .Serial, .Serializable, java.util.ArrayList, .Collections, .List, .Locale, .Vector, javax.accessibility.Accessible, .AccessibleAction, .AccessibleComponent, .AccessibleContext, .AccessibleIcon, .AccessibleRole, .AccessibleSelection, .AccessibleState, .AccessibleStateSet, .AccessibleText, .AccessibleValue, javax.swing.event.EventListenerList, .ListDataEvent, .ListDataListener, .ListSelectionEvent, .ListSelectionListener, javax.swing.plaf.ListUI, javax.swing.text.Position, sun.awt.AWTAccessor, .AWTAccessor.MouseEventAccessor, sun.swing.SwingUtilities2, .SwingUtilities2.Section

A component that displays a list of objects and allows the user to select one or more items. A separate model, ListModel, maintains the contents of the list.

It's easy to display an array or Vector of objects, using the JList constructor that automatically builds a read-only ListModel instance for you:

// Create a JList that displays strings from an array

String[] data = {"one", "two", "three", "four"};
JList<String> myList = new JList<String>(data);

// Create a JList that displays the superclasses of JList.class, by
// creating it with a Vector populated with this data

Vector<Class<?>> superClasses = new Vector<Class<?>>();
Class<JList> rootClass = javax.swing.JList.class;
for(Class<?> cls = rootClass; cls != null; cls = cls.getSuperclass()) {
    superClasses.addElement(cls);
}
JList<Class<?>> myList = new JList<Class<?>>(superClasses);

// The automatically created model is stored in JList's "model"
// property, which you can retrieve

ListModel<Class<?>> model = myList.getModel();
for(int i = 0; i < model.getSize(); i++) {
    System.out.println(model.getElementAt(i));
}

A ListModel can be supplied directly to a JList by way of a constructor or the setModel method. The contents need not be static - the number of items, and the values of items can change over time. A correct ListModel implementation notifies the set of javax.swing.event.ListDataListeners that have been added to it, each time a change occurs. These changes are characterized by a javax.swing.event.ListDataEvent, which identifies the range of list indices that have been modified, added, or removed. JList's ListUI is responsible for keeping the visual representation up to date with changes, by listening to the model.

Simple, dynamic-content, JList applications can use the DefaultListModel class to maintain list elements. This class implements the ListModel interface and also provides a java.util.Vector-like API. Applications that need a more custom ListModel implementation may instead wish to subclass AbstractListModel, which provides basic support for managing and notifying listeners. For example, a read-only implementation of AbstractListModel:

// This list model has about 2^16 elements.  Enjoy scrolling.

ListModel<String> bigData = new AbstractListModel<String>() {
    public int getSize() { return Short.MAX_VALUE; }
    public String getElementAt(int index) { return "Index " + index; }
};

The selection state of a JList is managed by another separate model, an instance of ListSelectionModel. JList is initialized with a selection model on construction, and also contains methods to query or set this selection model. Additionally, JList provides convenient methods for easily managing the selection. These methods, such as setSelectedIndex and getSelectedValue, are cover methods that take care of the details of interacting with the selection model. By default, JList's selection model is configured to allow any combination of items to be selected at a time; selection mode MULTIPLE_INTERVAL_SELECTION. The selection mode can be changed on the selection model directly, or via JList's cover method. Responsibility for updating the selection model in response to user gestures lies with the list's ListUI.

A correct ListSelectionModel implementation notifies the set of javax.swing.event.ListSelectionListeners that have been added to it each time a change to the selection occurs. These changes are characterized by a javax.swing.event.ListSelectionEvent, which identifies the range of the selection change.

The preferred way to listen for changes in list selection is to add ListSelectionListeners directly to the JList. JList then takes care of listening to the selection model and notifying your listeners of change.

Responsibility for listening to selection changes in order to keep the list's visual representation up to date lies with the list's ListUI.

Painting of cells in a JList is handled by a delegate called a cell renderer, installed on the list as the cellRenderer property. The renderer provides a java.awt.Component that is used like a "rubber stamp" to paint the cells. Each time a cell needs to be painted, the list's ListUI asks the cell renderer for the component, moves it into place, and has it paint the contents of the cell by way of its paint method. A default cell renderer, which uses a JLabel component to render, is installed by the lists's ListUI. You can substitute your own renderer using code like this:

// Display an icon and a string for each object in the list.

class MyCellRenderer extends JLabel implements ListCellRenderer<Object> {
    static final ImageIcon longIcon = new ImageIcon("long.gif");
    static final ImageIcon shortIcon = new ImageIcon("short.gif");

    // This is the only method defined by ListCellRenderer.
    // We just reconfigure the JLabel each time we're called.

    public Component getListCellRendererComponent(
      JList<?> list,           // the list
      Object value,            // value to display
      int index,               // cell index
      boolean isSelected,      // is the cell selected
      boolean cellHasFocus)    // does the cell have focus
    {
        String s = value.toString();
        setText(s);
        setIcon((s.length() > 10) ? longIcon : shortIcon);
        if (isSelected) {
            setBackground(list.getSelectionBackground());
            setForeground(list.getSelectionForeground());
        } else {
            setBackground(list.getBackground());
            setForeground(list.getForeground());
        }
        setEnabled(list.isEnabled());
        setFont(list.getFont());
        setOpaque(true);
        return this;
    }
}

myList.setCellRenderer(new MyCellRenderer());

Another job for the cell renderer is in helping to determine sizing information for the list. By default, the list's ListUI determines the size of cells by asking the cell renderer for its preferred size for each list item. This can be expensive for large lists of items. To avoid these calculations, you can set a fixedCellWidth and fixedCellHeight on the list, or have these values calculated automatically based on a single prototype value:

JList<String> bigDataList = new JList<String>(bigData);

// We don't want the JList implementation to compute the width
// or height of all of the list cells, so we give it a string
// that's as big as we'll need for any cell.  It uses this to
// compute values for the fixedCellWidth and fixedCellHeight
// properties.

bigDataList.setPrototypeCellValue("Index 1234567890");

JList doesn't implement scrolling directly. To create a list that scrolls, make it the viewport view of a JScrollPane. For example:

JScrollPane scrollPane = new JScrollPane(myList);

// Or in two steps:
JScrollPane scrollPane = new JScrollPane();
scrollPane.getViewport().setView(myList);

JList doesn't provide any special handling of double or triple (or N) mouse clicks, but it's easy to add a MouseListener if you wish to take action on these events. Use the locationToIndex method to determine what cell was clicked. For example:

MouseListener mouseListener = new MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
        if (e.getClickCount() == 2) {
            int index = list.locationToIndex(e.getPoint());
            System.out.println("Double clicked on Item " + index);
         }
    }
};
list.addMouseListener(mouseListener);

Warning

Swing is not thread safe. For more information see Swing's Threading Policy.

Warning

Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans has been added to the java.beans package. Please see java.beans.XMLEncoder.

See How to Use Lists in The Java Tutorial for further documentation.

Author
Hans Muller
Since
1.2
See Also
ListModel, AbstractListModel, DefaultListModel, ListSelectionModel, DefaultListSelectionModel, ListCellRenderer, DefaultListCellRenderer

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected class
JList.AccessibleJList

This class implements accessibility support for the JList class.

public static class
JList.DropLocation

A subclass of TransferHandler.DropLocation representing a drop location for a JList.

private class

Field Summary

Modifier and TypeField and Description
private ListCellRenderer<? super E>
private ListModel<E>
private boolean
private transient JList.DropLocation
dropLocation

The drop location.

private DropMode
dropMode

The drop mode for this component.

private int
private int
public static final int
HORIZONTAL_WRAP

Indicates a "newspaper style" layout with cells flowing horizontally then vertically.

private int
private int
layoutOrientation

How to lay out the cells; defaults to VERTICAL.

private E
private Color
private Color
private ListSelectionListener
private ListSelectionModel
private static final String
private transient boolean
updateInProgress

Flag to indicate UI update is in progress

public static final int
VERTICAL

Indicates a vertical layout of cells, in a single column; the default layout.

public static final int
VERTICAL_WRAP

Indicates a "newspaper style" layout with cells flowing vertically then horizontally.

private int
Inherited from javax.swing.JComponent:
DEBUG_GRAPHICS_LOADEDfocusControllerlistenerListpaintingChildTOOL_TIP_TEXT_KEYuiUNDEFINED_CONDITIONWHEN_ANCESTOR_OF_FOCUSED_COMPONENTWHEN_FOCUSEDWHEN_IN_FOCUSED_WINDOW

Constructor Summary

AccessConstructor and Description
public
JList(ListModel<E>
the model for the list
dataModel
)

Constructs a JList that displays elements from the specified, non-null, model.

public
JList(final E[]
the array of Objects to be loaded into the data model, non-null
listData
)

Constructs a JList that displays the elements in the specified array.

public
JList(final Vector<? extends E>
the Vector to be loaded into the data model, non-null
listData
)

Constructs a JList that displays the elements in the specified Vector.

public
JList()

Constructs a JList with an empty, read-only, model.

Method Summary

Modifier and TypeMethod and Description
public void
addListSelectionListener(ListSelectionListener
the ListSelectionListener to add
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.

public void
addSelectionInterval(int
the first index to add to the selection
anchor
,
int
the last index to add to the selection
lead
)

Sets the selection to be the union of the specified interval with current selection.

private void
checkScrollableParameters(Rectangle visibleRect, int orientation)

--- The Scrollable Implementation ---

public void
clearSelection()

Clears the selection; after calling this method, isSelectionEmpty will return true.

protected ListSelectionModel

Returns:

a DefaultListSelectionModel, used to initialize the list's selection model property during construction
createSelectionModel
()

Returns an instance of DefaultListSelectionModel; called during construction to initialize the list's selection model property.

pack-priv JList.DropLocation

Returns:

the drop location, or null
dropLocationForPoint
(Point
the point to calculate a drop location for
p
)

Overrides javax.swing.JComponent.dropLocationForPoint.

Calculates a drop location in this component, representing where a drop at the given point should insert data.
public void
ensureIndexIsVisible(int
the index of the cell to make visible
index
)

Scrolls the list within an enclosing viewport to make the specified cell completely visible.

protected void
fireSelectionValueChanged(int
the first index in the range, <= lastIndex
firstIndex
,
int
the last index in the range, >= firstIndex
lastIndex
,
boolean
whether or not this is one in a series of multiple events, where changes are still being made
isAdjusting
)

Notifies ListSelectionListeners added directly to the list of selection changes made to the selection model.

public AccessibleContext

Returns:

an AccessibleJList that serves as the AccessibleContext of this JList
getAccessibleContext
()

Overrides java.awt.Component.getAccessibleContext.

Implements javax.accessibility.Accessible.getAccessibleContext.

Gets the AccessibleContext associated with this JList.
public int

Returns:

the anchor selection index
getAnchorSelectionIndex
()

Returns the anchor selection index.

public Rectangle

Returns:

the bounding rectangle for the range of cells, or null
getCellBounds
(int
the first index in the range
index0
,
int
the second index in the range
index1
)

Returns the bounding rectangle, in the list's coordinate system, for the range of cells specified by the two indices.

public ListCellRenderer<? super E>

Returns:

the value of the cellRenderer property
getCellRenderer
()

Returns the object responsible for painting list items.

public boolean

Returns:

the value of the dragEnabled property
getDragEnabled
()

Returns whether or not automatic drag handling is enabled.

public final JList.DropLocation

Returns:

the drop location
getDropLocation
()

Returns the location that this component should visually indicate as the drop location during a DnD operation over the component, or null if no location is to currently be shown.

public final DropMode

Returns:

the drop mode for this component
getDropMode
()

Returns the drop mode for this component.

public int

Returns:

the index of the first visible cell
getFirstVisibleIndex
()

Returns the smallest list index that is currently visible.

public int

Returns:

the fixed cell height
getFixedCellHeight
()

Returns the value of the fixedCellHeight property.

public int

Returns:

the fixed cell width
getFixedCellWidth
()

Returns the value of the fixedCellWidth property.

public int

Returns:

the index of the last visible cell
getLastVisibleIndex
()

Returns the largest list index that is currently visible.

public int

Returns:

the value of the layoutOrientation property
getLayoutOrientation
()

Returns the layout orientation property for the list: VERTICAL if the layout is a single column of cells, VERTICAL_WRAP if the layout is "newspaper style" with the content flowing vertically then horizontally, or HORIZONTAL_WRAP if the layout is "newspaper style" with the content flowing horizontally then vertically.

public int

Returns:

the lead selection index
getLeadSelectionIndex
()

Returns the lead selection index.

public ListSelectionListener[]

Returns:

all of the ListSelectionListeners on this list, or an empty array if no listeners have been added
getListSelectionListeners
()

Returns an array of all the ListSelectionListeners added to this JList by way of addListSelectionListener.

public int

Returns:

the largest selected cell index
getMaxSelectionIndex
()

Returns the largest selected cell index, or -1 if the selection is empty.

public int

Returns:

the smallest selected cell index, or -1
getMinSelectionIndex
()

Returns the smallest selected cell index, or -1 if the selection is empty.

public ListModel<E>

Returns:

the ListModel that provides the displayed list of items
getModel
()

Returns the data model that holds the list of items displayed by the JList component.

public int

Returns:

the index of the next list element that starts with the prefix; otherwise -1
getNextMatch
(String
the string to test for a match
prefix
,
int
the index for starting the search
startIndex
,
Position.Bias
the search direction, either Position.Bias.Forward or Position.Bias.Backward.
bias
)

Returns the next list element whose toString value starts with the given prefix.

public Dimension

Returns:

a dimension containing the size of the viewport needed to display visibleRowCount rows
getPreferredScrollableViewportSize
()

Implements javax.swing.Scrollable.getPreferredScrollableViewportSize.

Computes the size of viewport needed to display visibleRowCount rows.
public E

Returns:

the value of the prototypeCellValue property
getPrototypeCellValue
()

Returns the "prototypical" cell value -- a value used to calculate a fixed width and height for cells.

public int

Returns:

the "block" increment for scrolling in the specified direction; always positive
getScrollableBlockIncrement
(Rectangle
the view area visible within the viewport
visibleRect
,
int
SwingConstants.HORIZONTAL or SwingConstants.VERTICAL
orientation
,
int
less or equal to zero to scroll up/back, greater than zero for down/forward
direction
)

Implements javax.swing.Scrollable.getScrollableBlockIncrement.

Returns the distance to scroll to expose the next or previous block.
public boolean

Returns:

whether or not an enclosing viewport should force the list's height to match its own
getScrollableTracksViewportHeight
()

Implements javax.swing.Scrollable.getScrollableTracksViewportHeight.

Returns true if this JList is displayed in a JViewport and the viewport is taller than the list's preferred height, or if the layout orientation is VERTICAL_WRAP and visibleRowCount <= 0; otherwise returns false.
public boolean

Returns:

whether or not an enclosing viewport should force the list's width to match its own
getScrollableTracksViewportWidth
()

Implements javax.swing.Scrollable.getScrollableTracksViewportWidth.

Returns true if this JList is displayed in a JViewport and the viewport is wider than the list's preferred width, or if the layout orientation is HORIZONTAL_WRAP and visibleRowCount <= 0; otherwise returns false.
public int

Returns:

the "unit" increment for scrolling in the specified direction; always positive
getScrollableUnitIncrement
(Rectangle
the view area visible within the viewport
visibleRect
,
int
SwingConstants.HORIZONTAL or SwingConstants.VERTICAL
orientation
,
int
less or equal to zero to scroll up/back, greater than zero for down/forward
direction
)

Implements javax.swing.Scrollable.getScrollableUnitIncrement.

Returns the distance to scroll to expose the next or previous row (for vertical scrolling) or column (for horizontal scrolling).
public int

Returns:

the smallest selected cell index
getSelectedIndex
()

Returns the smallest selected cell index; the selection when only a single item is selected in the list.

public int[]

Returns:

all of the selected indices, in increasing order, or an empty array if nothing is selected
getSelectedIndices
()

Returns an array of all of the selected indices, in increasing order.

public E

Returns:

the first selected value
getSelectedValue
()

Returns the value for the smallest selected cell index; the selected value when only a single item is selected in the list.

public Object[]

Returns:

the selected values, or an empty array if nothing is selected
getSelectedValues
()

Deprecated As of JDK 1.7, replaced by getSelectedValuesList()
Returns an array of all the selected values, in increasing order based on their indices in the list.
public List<E>

Returns:

the selected items, or an empty list if nothing is selected
getSelectedValuesList
()

Returns a list of all the selected items, in increasing order based on their indices in the list.

public Color

Returns:

the color to draw the background of selected items
getSelectionBackground
()

Returns the color used to draw the background of selected items.

public Color

Returns:

the color to draw the foreground of selected items
getSelectionForeground
()

Returns the color used to draw the foreground of selected items.

public int

Returns:

the current selection mode
getSelectionMode
()

Returns the current selection mode for the list.

public ListSelectionModel

Returns:

the ListSelectionModel that maintains the list's selections
getSelectionModel
()

Returns the current selection model.

public String
getToolTipText(MouseEvent
the MouseEvent to fetch the tooltip text for
event
)

Overrides javax.swing.JComponent.getToolTipText.

Returns the tooltip text to be used for the given event.
public ListUI

Returns:

the ListUI object that renders this component
getUI
()

Overrides javax.swing.JComponent.getUI.

Returns the ListUI, the look and feel object that renders this component.
public String

Returns:

the string "ListUI"
getUIClassID
()

Overrides javax.swing.JComponent.getUIClassID.

Returns "ListUI", the UIDefaults key used to look up the name of the javax.swing.plaf.ListUI class that defines the look and feel for this component.
public boolean

Returns:

the value of the selection model's isAdjusting property.
getValueIsAdjusting
()

Returns the value of the selection model's isAdjusting property.

public int

Returns:

the value of the visibleRowCount property.
getVisibleRowCount
()

Returns the value of the visibleRowCount property.

public Point

Returns:

the origin of the cell, or null
indexToLocation
(int
the cell index
index
)

Returns the origin of the specified item in the list's coordinate system.

public boolean

Returns:

true if the specified index is selected, else false
isSelectedIndex
(int
index to be queried for selection state
index
)

Returns true if the specified index is selected, else false.

public boolean

Returns:

true if nothing is selected, else false
isSelectionEmpty
()

Returns true if nothing is selected, else false.

public int

Returns:

the cell index closest to the given location, or -1
locationToIndex
(Point
the coordinates of the point
location
)

Returns the cell index closest to the given location in the list's coordinate system.

protected String

Returns:

a String representation of this JList.
paramString
()

Overrides javax.swing.JComponent.paramString.

Returns a String representation of this JList.
public void
removeListSelectionListener(ListSelectionListener
the ListSelectionListener to remove
listener
)

Removes a selection listener from the list.

public void
removeSelectionInterval(int
the first index to remove from the selection
index0
,
int
the last index to remove from the selection
index1
)

Sets the selection to be the set difference of the specified interval and the current selection.

public void
setCellRenderer(ListCellRenderer<? super E>
the ListCellRenderer that paints list cells
cellRenderer
)

Sets the delegate that is used to paint each cell in the list.

public void
setDragEnabled(boolean
whether or not to enable automatic drag handling
b
)

Turns on or off automatic drag handling.

pack-priv Object

Returns:

any saved state for this component, or null if none
setDropLocation
(TransferHandler.DropLocation
the drop location (as calculated by dropLocationForPoint) or null if there's no longer a valid drop location
location
,
Object
the state object saved earlier for this component, or null
state
,
boolean
whether or not the method is being called because an actual drop occurred
forDrop
)

Overrides javax.swing.JComponent.setDropLocation.

Called to set or clear the drop location during a DnD operation.
public final void
setDropMode(DropMode
the drop mode to use
dropMode
)

Sets the drop mode for this component.

public void
setFixedCellHeight(int
the height to be used for all cells in the list
height
)

Sets a fixed value to be used for the height of every cell in the list.

public void
setFixedCellWidth(int
the width to be used for all cells in the list
width
)

Sets a fixed value to be used for the width of every cell in the list.

public void
setLayoutOrientation(int
the new layout orientation, one of: VERTICAL, HORIZONTAL_WRAP or VERTICAL_WRAP
layoutOrientation
)

Defines the way list cells are laid out.

public void
setListData(final E[]
an array of E containing the items to display in the list
listData
)

Constructs a read-only ListModel from an array of items, and calls setModel with this model.

public void
setListData(final Vector<? extends E>
a Vector containing the items to display in the list
listData
)

Constructs a read-only ListModel from a Vector and calls setModel with this model.

public void
setModel(ListModel<E>
the ListModel that provides the list of items for display
model
)

Sets the model that represents the contents or "value" of the list, notifies property change listeners, and then clears the list's selection.

public void
setPrototypeCellValue(E
the value on which to base fixedCellWidth and fixedCellHeight
prototypeCellValue
)

Sets the prototypeCellValue property, and then (if the new value is non-null), computes the fixedCellWidth and fixedCellHeight properties by requesting the cell renderer component for the given value (and index 0) from the cell renderer, and using that component's preferred size.

public void
setSelectedIndex(int
the index of the cell to select
index
)

Selects a single cell.

public void
setSelectedIndices(int[]
an array of the indices of the cells to select, non-null
indices
)

Changes the selection to be the set of indices specified by the given array.

public void
setSelectedValue(Object
the object to select
anObject
,
boolean
true if the list should scroll to display the selected object, if one exists; otherwise false
shouldScroll
)

Selects the specified object from the list.

public void
setSelectionBackground(Color
the Color to use for the background of selected cells
selectionBackground
)

Sets the color used to draw the background of selected items, which cell renderers can use fill selected cells.

public void
setSelectionForeground(Color
the Color to use in the foreground for selected list items
selectionForeground
)

Sets the color used to draw the foreground of selected items, which cell renderers can use to render text and graphics.

public void
setSelectionInterval(int
the first index to select
anchor
,
int
the last index to select
lead
)

Selects the specified interval.

public void
setSelectionMode(int
the selection mode
selectionMode
)

Sets the selection mode for the list.

public void
setSelectionModel(ListSelectionModel
the ListSelectionModel that implements the selections
selectionModel
)

Sets the selectionModel for the list to a non-null ListSelectionModel implementation.

public void
setUI(ListUI
the ListUI object
ui
)

Sets the ListUI, the look and feel object that renders this component.

public void
setValueIsAdjusting(boolean
the new value for the property
b
)

Sets the selection model's valueIsAdjusting property.

public void
setVisibleRowCount(int
an integer specifying the preferred number of rows to display without requiring scrolling
visibleRowCount
)

Sets the visibleRowCount property, which has different meanings depending on the layout orientation: For a VERTICAL layout orientation, this sets the preferred number of rows to display without requiring scrolling; for other orientations, it affects the wrapping of cells.

private void
public void
updateUI()

Overrides javax.swing.JComponent.updateUI.

Resets the ListUI property by setting it to the value provided by the current look and feel.
private void
writeObject(ObjectOutputStream
the ObjectOutputStream in which to write
s
)

Hides javax.swing.JComponent.writeObject.

Before writing a JComponent to an ObjectOutputStream we temporarily uninstall its UI.
Inherited from javax.swing.JComponent:
_paintImmediatelyaddAncestorListeneraddNotifyaddVetoableChangeListeneralwaysOnTopcheckIfChildObscuredBySiblingclientPropertyChangedcomponentInputMapChangedcomputeVisibleRectcomputeVisibleRectcompWriteObjectNotifycontainscreateToolTipdisabledndDoneenablefirePropertyChangefirePropertyChangefirePropertyChangefireVetoableChangegetActionForKeyStrokegetActionMapgetActionMapgetAlignmentXgetAlignmentYgetAncestorListenersgetAutoscrollsgetBaselinegetBaselineResizeBehaviorgetBordergetBoundsgetClientPropertygetComponentGraphicsgetComponentPopupMenugetConditionForKeyStrokegetCreatedDoubleBuffergetDebugGraphicsOptionsgetDefaultLocalegetFontMetricsgetGraphicsgetGraphicsInvokedgetHeightgetInheritsPopupMenugetInputMapgetInputMapgetInputMapgetInputVerifiergetInsetsgetInsetsgetListenersgetLocationgetManagingFocusBackwardTraversalKeysgetManagingFocusForwardTraversalKeysgetMaximumSizegetMinimumSizegetNextFocusableComponentgetPopupLocationgetPreferredSizegetRegisteredKeyStrokesgetRootPanegetSizegetToolTipLocationgetToolTipTextgetTopLevelAncestorgetTransferHandlergetVerifyInputWhenFocusTargetgetVetoableChangeListenersgetVisibleRectgetWidthgetWriteObjCountergetXgetYgrabFocushideisDoubleBufferedisLightweightComponentisManagingFocusisOpaqueisOptimizedDrawingEnabledisPaintingisPaintingForPrintisPaintingOriginisPaintingTileisRequestFocusEnabledisValidateRootpaintpaintBorderpaintChildrenpaintComponentpaintForceDoubleBufferedpaintImmediatelypaintImmediatelypaintToOffscreenprintprintAllprintBorderprintChildrenprintComponentprocessComponentKeyEventprocessKeyBindingprocessKeyBindingsprocessKeyBindingsForAllComponentsprocessKeyEventprocessMouseEventprocessMouseMotionEventputClientPropertyrectangleIsObscuredregisterKeyboardActionregisterKeyboardActionremoveAncestorListenerremoveNotifyremoveVetoableChangeListenerrepaintrepaintrequestDefaultFocusrequestFocusrequestFocusrequestFocusInWindowrequestFocusInWindowresetKeyboardActionsreshaperevalidatesafelyGetGraphicssafelyGetGraphicsscrollRectToVisiblesetActionMapsetAlignmentXsetAlignmentYsetAutoscrollssetBackgroundsetBordersetComponentPopupMenusetCreatedDoubleBuffersetDebugGraphicsOptionssetDefaultLocalesetDoubleBufferedsetEnabledsetFocusTraversalKeyssetFontsetForegroundsetInheritsPopupMenusetInputMapsetInputVerifiersetMaximumSizesetMinimumSizesetNextFocusableComponentsetOpaquesetPaintingChildsetPreferredSizesetRequestFocusEnabledsetToolTipTextsetTransferHandlersetUIsetUIPropertysetVerifyInputWhenFocusTargetsetVisiblesetWriteObjCountershouldDebugGraphicssuperProcessMouseMotionEventunregisterKeyboardActionupdate