| |
|
| java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JComboBox
JComboBox | public class JComboBox extends JComponent implements ItemSelectable,ListDataListener,ActionListener,Accessible(Code) | | A component that combines a button or editable field and a drop-down list.
The user can select a value from the drop-down list, which appears at the
user's request. If you make the combo box editable, then the combo box
includes an editable field into which the user can type a value.
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 JavaBeansTM
has been added to the java.beans package.
Please see
java.beans.XMLEncoder .
See How to Use Combo Boxes
in The Java Tutorial
for further information.
See Also: ComboBoxModel See Also: DefaultComboBoxModel version: 1.147 05/05/07 author: Arnaud Weber author: Mark Davidson |
Inner Class :public interface KeySelectionManager | |
Inner Class :class DefaultKeySelectionManager implements KeySelectionManager,Serializable | |
Constructor Summary | |
public | JComboBox(ComboBoxModel aModel) Creates a JComboBox that takes its items from an
existing ComboBoxModel . | public | JComboBox(Object items) Creates a JComboBox that contains the elements
in the specified array. | public | JComboBox(Vector> items) Creates a JComboBox that contains the elements
in the specified Vector. | public | JComboBox() Creates a JComboBox with a default data model.
The default data model is an empty list of objects.
Use addItem to add items. |
Method Summary | |
public void | actionPerformed(ActionEvent e) This method is public as an implementation side effect. | protected void | actionPropertyChanged(Action action, String propertyName) Updates the combobox's state in response to property changes in
associated action. | public void | addActionListener(ActionListener l) Adds an ActionListener . | public void | addItem(Object anObject) Adds an item to the item list.
This method works only if the JComboBox uses a
mutable data model.
Warning:
Focus and keyboard navigation problems may arise if you add duplicate
String objects. | public void | addItemListener(ItemListener aListener) Adds an ItemListener . | public void | addPopupMenuListener(PopupMenuListener l) Adds a PopupMenu listener which will listen to notification
messages from the popup portion of the combo box. | void | checkMutableComboBoxModel() Checks that the dataModel is an instance of
MutableComboBoxModel . | public void | configureEditor(ComboBoxEditor anEditor, Object anItem) Initializes the editor with the specified item. | protected void | configurePropertiesFromAction(Action a) Sets the properties on this combobox to match those in the specified
Action . | public void | contentsChanged(ListDataEvent e) This method is public as an implementation side effect. | protected PropertyChangeListener | createActionPropertyChangeListener(Action a) Creates and returns a PropertyChangeListener that is
responsible for listening for changes from the specified
Action and updating the appropriate properties.
Warning: If you subclass this do not create an anonymous
inner class. | protected KeySelectionManager | createDefaultKeySelectionManager() Returns an instance of the default key-selection manager. | protected void | fireActionEvent() Notifies all listeners that have registered interest for
notification on this event type. | protected void | fireItemStateChanged(ItemEvent e) Notifies all listeners that have registered interest for
notification on this event type. | public void | firePopupMenuCanceled() Notifies PopupMenuListener s that the popup portion of the
combo box has been canceled. | public void | firePopupMenuWillBecomeInvisible() Notifies PopupMenuListener s that the popup portion of the
combo box has become invisible. | public void | firePopupMenuWillBecomeVisible() Notifies PopupMenuListener s that the popup portion of the
combo box will become visible. | public AccessibleContext | getAccessibleContext() Gets the AccessibleContext associated with this JComboBox. | public Action | getAction() Returns the currently set Action for this
ActionEvent source, or null if no
Action is set. | public String | getActionCommand() Returns the action command that is included in the event sent to
action listeners. | public ActionListener[] | getActionListeners() Returns an array of all the ActionListener s added
to this JComboBox with addActionListener(). | public ComboBoxEditor | getEditor() Returns the editor used to paint and edit the selected item in the
JComboBox field. | public Object | getItemAt(int index) Returns the list item at the specified index. | public int | getItemCount() Returns the number of items in the list. | public ItemListener[] | getItemListeners() Returns an array of all the ItemListener s added
to this JComboBox with addItemListener(). | public KeySelectionManager | getKeySelectionManager() Returns the list's key-selection manager. | public int | getMaximumRowCount() | public ComboBoxModel | getModel() Returns the data model currently used by the JComboBox . | public PopupMenuListener[] | getPopupMenuListeners() Returns an array of all the PopupMenuListener s added
to this JComboBox with addPopupMenuListener(). | public Object | getPrototypeDisplayValue() Returns the "prototypical display" value - an Object used
for the calculation of the display height and width. | public ListCellRenderer | getRenderer() Returns the renderer used to display the selected item in the
JComboBox field. | public int | getSelectedIndex() Returns the first item in the list that matches the given item.
The result is not always defined if the JComboBox
allows selected items that are not in the list. | public Object | getSelectedItem() Returns the current selected item. | public Object[] | getSelectedObjects() Returns an array containing the selected item. | public ComboBoxUI | getUI() Returns the L&F object that renders this component. | public String | getUIClassID() Returns the name of the L&F class that renders this component. | public void | hidePopup() Causes the combo box to close its popup window. | public void | insertItemAt(Object anObject, int index) Inserts an item into the item list at a given index. | protected void | installAncestorListener() | public void | intervalAdded(ListDataEvent e) This method is public as an implementation side effect. | public void | intervalRemoved(ListDataEvent e) This method is public as an implementation side effect. | public boolean | isEditable() Returns true if the JComboBox is editable. | public boolean | isLightWeightPopupEnabled() Gets the value of the lightWeightPopupEnabled
property. | public boolean | isPopupVisible() Determines the visibility of the popup. | protected String | paramString() Returns a string representation of this JComboBox .
This method is intended to be used only for debugging purposes,
and the content and format of the returned string may vary between
implementations. | public void | processKeyEvent(KeyEvent e) Handles KeyEvent s, looking for the Tab key. | public void | removeActionListener(ActionListener l) Removes an ActionListener . | public void | removeAllItems() Removes all items from the item list. | public void | removeItem(Object anObject) Removes an item from the item list. | public void | removeItemAt(int anIndex) Removes the item at anIndex
This method works only if the JComboBox uses a
mutable data model. | public void | removeItemListener(ItemListener aListener) Removes an ItemListener . | public void | removePopupMenuListener(PopupMenuListener l) Removes a PopupMenuListener . | public boolean | selectWithKeyChar(char keyChar) Selects the list item that corresponds to the specified keyboard
character and returns true, if there is an item corresponding
to that character. | protected void | selectedItemChanged() This protected method is implementation specific. | public void | setAction(Action a) Sets the Action for the ActionEvent source.
The new Action replaces any previously set
Action but does not affect ActionListeners
independently added with addActionListener . | public void | setActionCommand(String aCommand) Sets the action command that should be included in the event
sent to action listeners. | public void | setEditable(boolean aFlag) Determines whether the JComboBox field is editable.
An editable JComboBox allows the user to type into the
field or selected an item from the list to initialize the field,
after which it can be edited. | public void | setEditor(ComboBoxEditor anEditor) Sets the editor used to paint and edit the selected item in the
JComboBox field. | public void | setEnabled(boolean b) Enables the combo box so that items can be selected. | public void | setKeySelectionManager(KeySelectionManager aManager) Sets the object that translates a keyboard character into a list
selection. | public void | setLightWeightPopupEnabled(boolean aFlag) Sets the lightWeightPopupEnabled property, which
provides a hint as to whether or not a lightweight
Component should be used to contain the
JComboBox , versus a heavyweight
Component such as a Panel
or a Window . | public void | setMaximumRowCount(int count) Sets the maximum number of rows the JComboBox displays. | public void | setModel(ComboBoxModel aModel) Sets the data model that the JComboBox uses to obtain
the list of items. | public void | setPopupVisible(boolean v) Sets the visibility of the popup. | public void | setPrototypeDisplayValue(Object prototypeDisplayValue) Sets the prototype display value used to calculate the size of the display
for the UI portion. | public void | setRenderer(ListCellRenderer aRenderer) Sets the renderer that paints the list items and the item selected from the list in
the JComboBox field. | public void | setSelectedIndex(int anIndex) Selects the item at index anIndex . | public void | setSelectedItem(Object anObject) Sets the selected item in the combo box display area to the object in
the argument.
If anObject is in the list, the display area shows
anObject selected.
If anObject is not in the list and the combo box is
uneditable, it will not change the current selection. | public void | setUI(ComboBoxUI ui) Sets the L&F object that renders this component. | public void | showPopup() Causes the combo box to display its popup window. | public void | updateUI() Resets the UI property to a value from the current look and feel. |
selectedItemReminder | protected Object selectedItemReminder(Code) | | This protected field is implementation specific. Do not access directly
or override.
|
JComboBox | public JComboBox(ComboBoxModel aModel)(Code) | | Creates a JComboBox that takes its items from an
existing ComboBoxModel . Since the
ComboBoxModel is provided, a combo box created using
this constructor does not create a default combo box model and
may impact how the insert, remove and add methods behave.
Parameters: aModel - the ComboBoxModel that provides the displayed list of items See Also: DefaultComboBoxModel |
JComboBox | public JComboBox(Object items)(Code) | | Creates a JComboBox that contains the elements
in the specified array. By default the first item in the array
(and therefore the data model) becomes selected.
Parameters: items - an array of objects to insert into the combo box See Also: DefaultComboBoxModel |
JComboBox | public JComboBox(Vector> items)(Code) | | Creates a JComboBox that contains the elements
in the specified Vector. By default the first item in the vector
(and therefore the data model) becomes selected.
Parameters: items - an array of vectors to insert into the combo box See Also: DefaultComboBoxModel |
JComboBox | public JComboBox()(Code) | | Creates a JComboBox with a default data model.
The default data model is an empty list of objects.
Use addItem to add items. By default the first item
in the data model becomes selected.
See Also: DefaultComboBoxModel |
actionPerformed | public void actionPerformed(ActionEvent e)(Code) | | This method is public as an implementation side effect.
do not call or override.
|
actionPropertyChanged | protected void actionPropertyChanged(Action action, String propertyName)(Code) | | Updates the combobox's state in response to property changes in
associated action. This method is invoked from the
PropertyChangeListener returned from
createActionPropertyChangeListener . Subclasses do not normally
need to invoke this. Subclasses that support additional
Action properties should override this and
configurePropertiesFromAction .
Refer to the table at
Swing Components Supporting Action for a list of
the properties this method sets.
Parameters: action - the Action associated with this combobox Parameters: propertyName - the name of the property that changed since: 1.6 See Also: Action See Also: JComboBox.configurePropertiesFromAction |
addActionListener | public void addActionListener(ActionListener l)(Code) | | Adds an ActionListener .
The ActionListener will receive an ActionEvent
when a selection has been made. If the combo box is editable, then
an ActionEvent will be fired when editing has stopped.
Parameters: l - the ActionListener that is to be notified See Also: JComboBox.setSelectedItem |
addItem | public void addItem(Object anObject)(Code) | | Adds an item to the item list.
This method works only if the JComboBox uses a
mutable data model.
Warning:
Focus and keyboard navigation problems may arise if you add duplicate
String objects. A workaround is to add new objects instead of String
objects and make sure that the toString() method is defined.
For example:
comboBox.addItem(makeObj("Item 1"));
comboBox.addItem(makeObj("Item 1"));
...
private Object makeObj(final String item) {
return new Object() { public String toString() { return item; } };
}
Parameters: anObject - the Object to add to the list See Also: MutableComboBoxModel |
addItemListener | public void addItemListener(ItemListener aListener)(Code) | | Adds an ItemListener .
aListener will receive one or two ItemEvent s when
the selected item changes.
Parameters: aListener - the ItemListener that is to be notified See Also: JComboBox.setSelectedItem |
addPopupMenuListener | public void addPopupMenuListener(PopupMenuListener l)(Code) | | Adds a PopupMenu listener which will listen to notification
messages from the popup portion of the combo box.
For all standard look and feels shipped with Java, the popup list
portion of combo box is implemented as a JPopupMenu .
A custom look and feel may not implement it this way and will
therefore not receive the notification.
Parameters: l - the PopupMenuListener to add since: 1.4 |
checkMutableComboBoxModel | void checkMutableComboBoxModel()(Code) | | Checks that the dataModel is an instance of
MutableComboBoxModel . If not, it throws an exception.
exception: RuntimeException - if dataModel is not aninstance of MutableComboBoxModel . |
configureEditor | public void configureEditor(ComboBoxEditor anEditor, Object anItem)(Code) | | Initializes the editor with the specified item.
Parameters: anEditor - the ComboBoxEditor that displaysthe list item in thecombo box field and allows it to be edited Parameters: anItem - the object to display and edit in the field |
configurePropertiesFromAction | protected void configurePropertiesFromAction(Action a)(Code) | | Sets the properties on this combobox to match those in the specified
Action . Refer to
Swing Components Supporting Action for more
details as to which properties this sets.
Parameters: a - the Action from which to get the properties,or null since: 1.3 See Also: Action See Also: JComboBox.setAction |
contentsChanged | public void contentsChanged(ListDataEvent e)(Code) | | This method is public as an implementation side effect.
do not call or override.
|
createActionPropertyChangeListener | protected PropertyChangeListener createActionPropertyChangeListener(Action a)(Code) | | Creates and returns a PropertyChangeListener that is
responsible for listening for changes from the specified
Action and updating the appropriate properties.
Warning: If you subclass this do not create an anonymous
inner class. If you do the lifetime of the combobox will be tied to
that of the Action .
Parameters: a - the combobox's action since: 1.3 See Also: Action See Also: JComboBox.setAction |
createDefaultKeySelectionManager | protected KeySelectionManager createDefaultKeySelectionManager()(Code) | | Returns an instance of the default key-selection manager.
the KeySelectionManager currently used by the list See Also: JComboBox.setKeySelectionManager |
fireActionEvent | protected void fireActionEvent()(Code) | | Notifies all listeners that have registered interest for
notification on this event type.
See Also: EventListenerList |
fireItemStateChanged | protected void fireItemStateChanged(ItemEvent e)(Code) | | Notifies all listeners that have registered interest for
notification on this event type.
Parameters: e - the event of interest See Also: EventListenerList |
firePopupMenuCanceled | public void firePopupMenuCanceled()(Code) | | Notifies PopupMenuListener s that the popup portion of the
combo box has been canceled.
This method is public but should not be called by anything other than
the UI delegate.
See Also: JComboBox.addPopupMenuListener since: 1.4 |
firePopupMenuWillBecomeInvisible | public void firePopupMenuWillBecomeInvisible()(Code) | | Notifies PopupMenuListener s that the popup portion of the
combo box has become invisible.
This method is public but should not be called by anything other than
the UI delegate.
See Also: JComboBox.addPopupMenuListener since: 1.4 |
firePopupMenuWillBecomeVisible | public void firePopupMenuWillBecomeVisible()(Code) | | Notifies PopupMenuListener s that the popup portion of the
combo box will become visible.
This method is public but should not be called by anything other than
the UI delegate.
See Also: JComboBox.addPopupMenuListener since: 1.4 |
getAccessibleContext | public AccessibleContext getAccessibleContext()(Code) | | Gets the AccessibleContext associated with this JComboBox.
For combo boxes, the AccessibleContext takes the form of an
AccessibleJComboBox.
A new AccessibleJComboBox instance is created if necessary.
an AccessibleJComboBox that serves as the AccessibleContext of this JComboBox |
getAction | public Action getAction()(Code) | | Returns the currently set Action for this
ActionEvent source, or null if no
Action is set.
the Action for this ActionEvent source; or null since: 1.3 See Also: Action See Also: JComboBox.setAction |
getActionCommand | public String getActionCommand()(Code) | | Returns the action command that is included in the event sent to
action listeners.
the string containing the "command" that is sentto action listeners. |
getActionListeners | public ActionListener[] getActionListeners()(Code) | | Returns an array of all the ActionListener s added
to this JComboBox with addActionListener().
all of the ActionListener s added or an emptyarray if no listeners have been added since: 1.4 |
getEditor | public ComboBoxEditor getEditor()(Code) | | Returns the editor used to paint and edit the selected item in the
JComboBox field.
the ComboBoxEditor that displays the selected item |
getItemAt | public Object getItemAt(int index)(Code) | | Returns the list item at the specified index. If index
is out of range (less than zero or greater than or equal to size)
it will return null .
Parameters: index - an integer indicating the list position, where the firstitem starts at zero the Object at that list position; ornull if out of range |
getItemCount | public int getItemCount()(Code) | | Returns the number of items in the list.
an integer equal to the number of items in the list |
getItemListeners | public ItemListener[] getItemListeners()(Code) | | Returns an array of all the ItemListener s added
to this JComboBox with addItemListener().
all of the ItemListener s added or an emptyarray if no listeners have been added since: 1.4 |
getKeySelectionManager | public KeySelectionManager getKeySelectionManager()(Code) | | Returns the list's key-selection manager.
the KeySelectionManager currently in use |
getMaximumRowCount | public int getMaximumRowCount()(Code) | | Returns the maximum number of items the combo box can display
without a scrollbar
an integer specifying the maximum number of items that are displayed in the list before using a scrollbar |
getModel | public ComboBoxModel getModel()(Code) | | Returns the data model currently used by the JComboBox .
the ComboBoxModel that provides the displayedlist of items |
getPopupMenuListeners | public PopupMenuListener[] getPopupMenuListeners()(Code) | | Returns an array of all the PopupMenuListener s added
to this JComboBox with addPopupMenuListener().
all of the PopupMenuListener s added or an emptyarray if no listeners have been added since: 1.4 |
getPrototypeDisplayValue | public Object getPrototypeDisplayValue()(Code) | | Returns the "prototypical display" value - an Object used
for the calculation of the display height and width.
the value of the prototypeDisplayValue property See Also: JComboBox.setPrototypeDisplayValue since: 1.4 |
getRenderer | public ListCellRenderer getRenderer()(Code) | | Returns the renderer used to display the selected item in the
JComboBox field.
the ListCellRenderer that displaysthe selected item. |
getSelectedIndex | public int getSelectedIndex()(Code) | | Returns the first item in the list that matches the given item.
The result is not always defined if the JComboBox
allows selected items that are not in the list.
Returns -1 if there is no selected item or if the user specified
an item which is not in the list.
an integer specifying the currently selected list item,where 0 specifiesthe first item in the list;or -1 if no item is selected or ifthe currently selected item is not in the list |
getSelectedItem | public Object getSelectedItem()(Code) | | Returns the current selected item.
If the combo box is editable, then this value may not have been added
to the combo box with addItem , insertItemAt
or the data constructors.
the current selected Object See Also: JComboBox.setSelectedItem |
getSelectedObjects | public Object[] getSelectedObjects()(Code) | | Returns an array containing the selected item.
This method is implemented for compatibility with
ItemSelectable .
an array of Objects containing oneelement -- the selected item |
getUI | public ComboBoxUI getUI()(Code) | | Returns the L&F object that renders this component.
the ComboBoxUI object that renders this component |
insertItemAt | public void insertItemAt(Object anObject, int index)(Code) | | Inserts an item into the item list at a given index.
This method works only if the JComboBox uses a
mutable data model.
Parameters: anObject - the Object to add to the list Parameters: index - an integer specifying the position at whichto add the item See Also: MutableComboBoxModel |
installAncestorListener | protected void installAncestorListener()(Code) | | |
intervalAdded | public void intervalAdded(ListDataEvent e)(Code) | | This method is public as an implementation side effect.
do not call or override.
|
intervalRemoved | public void intervalRemoved(ListDataEvent e)(Code) | | This method is public as an implementation side effect.
do not call or override.
|
isEditable | public boolean isEditable()(Code) | | Returns true if the JComboBox is editable.
By default, a combo box is not editable.
true if the JComboBox is editable, else false |
isLightWeightPopupEnabled | public boolean isLightWeightPopupEnabled()(Code) | | Gets the value of the lightWeightPopupEnabled
property.
the value of the lightWeightPopupEnabled property See Also: JComboBox.setLightWeightPopupEnabled |
isPopupVisible | public boolean isPopupVisible()(Code) | | Determines the visibility of the popup.
true if the popup is visible, otherwise returns false |
paramString | protected String paramString()(Code) | | Returns a string representation of this JComboBox .
This method is intended to be used only for debugging purposes,
and the content and format of the returned string may vary between
implementations. The returned string may be empty but may not
be null .
a string representation of this JComboBox |
processKeyEvent | public void processKeyEvent(KeyEvent e)(Code) | | Handles KeyEvent s, looking for the Tab key.
If the Tab key is found, the popup window is closed.
Parameters: e - the KeyEvent containing the keyboardkey that was pressed |
removeActionListener | public void removeActionListener(ActionListener l)(Code) | | Removes an ActionListener .
Parameters: l - the ActionListener to remove |
removeAllItems | public void removeAllItems()(Code) | | Removes all items from the item list.
|
removeItem | public void removeItem(Object anObject)(Code) | | Removes an item from the item list.
This method works only if the JComboBox uses a
mutable data model.
Parameters: anObject - the object to remove from the item list See Also: MutableComboBoxModel |
removeItemAt | public void removeItemAt(int anIndex)(Code) | | Removes the item at anIndex
This method works only if the JComboBox uses a
mutable data model.
Parameters: anIndex - an int specifying the index of the item to remove,where 0indicates the first item in the list See Also: MutableComboBoxModel |
removeItemListener | public void removeItemListener(ItemListener aListener)(Code) | | Removes an ItemListener .
Parameters: aListener - the ItemListener to remove |
selectWithKeyChar | public boolean selectWithKeyChar(char keyChar)(Code) | | Selects the list item that corresponds to the specified keyboard
character and returns true, if there is an item corresponding
to that character. Otherwise, returns false.
Parameters: keyChar - a char, typically this is a keyboard keytyped by the user |
selectedItemChanged | protected void selectedItemChanged()(Code) | | This protected method is implementation specific. Do not access directly
or override.
|
setAction | public void setAction(Action a)(Code) | | Sets the Action for the ActionEvent source.
The new Action replaces any previously set
Action but does not affect ActionListeners
independently added with addActionListener .
If the Action is already a registered
ActionListener for the ActionEvent source,
it is not re-registered.
Setting the Action results in immediately changing
all the properties described in
Swing Components Supporting Action .
Subsequently, the combobox's properties are automatically updated
as the Action 's properties change.
This method uses three other methods to set
and help track the Action 's property values.
It uses the configurePropertiesFromAction method
to immediately change the combobox's properties.
To track changes in the Action 's property values,
this method registers the PropertyChangeListener
returned by createActionPropertyChangeListener . The
default
PropertyChangeListener invokes the
actionPropertyChanged method when a property in the
Action changes.
Parameters: a - the Action for the JComboBox ,or null . since: 1.3 See Also: Action See Also: JComboBox.getAction See Also: JComboBox.configurePropertiesFromAction See Also: JComboBox.createActionPropertyChangeListener See Also: JComboBox.actionPropertyChanged See Also: |
setActionCommand | public void setActionCommand(String aCommand)(Code) | | Sets the action command that should be included in the event
sent to action listeners.
Parameters: aCommand - a string containing the "command" that is sentto action listeners; the same listener can thendo different things depending on the command itreceives |
setEditable | public void setEditable(boolean aFlag)(Code) | | Determines whether the JComboBox field is editable.
An editable JComboBox allows the user to type into the
field or selected an item from the list to initialize the field,
after which it can be edited. (The editing affects only the field,
the list item remains intact.) A non editable JComboBox
displays the selected item in the field,
but the selection cannot be modified.
Parameters: aFlag - a boolean value, where true indicates that thefield is editable |
setEditor | public void setEditor(ComboBoxEditor anEditor)(Code) | | Sets the editor used to paint and edit the selected item in the
JComboBox field. The editor is used only if the
receiving JComboBox is editable. If not editable,
the combo box uses the renderer to paint the selected item.
Parameters: anEditor - the ComboBoxEditor thatdisplays the selected item See Also: JComboBox.setRenderer |
setEnabled | public void setEnabled(boolean b)(Code) | | Enables the combo box so that items can be selected. When the
combo box is disabled, items cannot be selected and values
cannot be typed into its field (if it is editable).
Parameters: b - a boolean value, where true enables the component andfalse disables it |
setKeySelectionManager | public void setKeySelectionManager(KeySelectionManager aManager)(Code) | | Sets the object that translates a keyboard character into a list
selection. Typically, the first selection with a matching first
character becomes the selected item.
|
setLightWeightPopupEnabled | public void setLightWeightPopupEnabled(boolean aFlag)(Code) | | Sets the lightWeightPopupEnabled property, which
provides a hint as to whether or not a lightweight
Component should be used to contain the
JComboBox , versus a heavyweight
Component such as a Panel
or a Window . The decision of lightweight
versus heavyweight is ultimately up to the
JComboBox . Lightweight windows are more
efficient than heavyweight windows, but lightweight
and heavyweight components do not mix well in a GUI.
If your application mixes lightweight and heavyweight
components, you should disable lightweight popups.
The default value for the lightWeightPopupEnabled
property is true , unless otherwise specified
by the look and feel. Some look and feels always use
heavyweight popups, no matter what the value of this property.
See the article Mixing Heavy and Light Components
on
The Swing Connection
This method fires a property changed event.
Parameters: aFlag - if true , lightweight popups are desired |
setMaximumRowCount | public void setMaximumRowCount(int count)(Code) | | Sets the maximum number of rows the JComboBox displays.
If the number of objects in the model is greater than count,
the combo box uses a scrollbar.
Parameters: count - an integer specifying the maximum number of items todisplay in the list before using a scrollbar |
setModel | public void setModel(ComboBoxModel aModel)(Code) | | Sets the data model that the JComboBox uses to obtain
the list of items.
Parameters: aModel - the ComboBoxModel that provides thedisplayed list of items |
setPopupVisible | public void setPopupVisible(boolean v)(Code) | | Sets the visibility of the popup.
|
setPrototypeDisplayValue | public void setPrototypeDisplayValue(Object prototypeDisplayValue)(Code) | | Sets the prototype display value used to calculate the size of the display
for the UI portion.
If a prototype display value is specified, the preferred size of
the combo box is calculated by configuring the renderer with the
prototype display value and obtaining its preferred size. Specifying
the preferred display value is often useful when the combo box will be
displaying large amounts of data. If no prototype display value has
been specified, the renderer must be configured for each value from
the model and its preferred size obtained, which can be
relatively expensive.
Parameters: prototypeDisplayValue - See Also: JComboBox.getPrototypeDisplayValue since: 1.4 |
setRenderer | public void setRenderer(ListCellRenderer aRenderer)(Code) | | Sets the renderer that paints the list items and the item selected from the list in
the JComboBox field. The renderer is used if the JComboBox is not
editable. If it is editable, the editor is used to render and edit
the selected item.
The default renderer displays a string or an icon.
Other renderers can handle graphic images and composite items.
To display the selected item,
aRenderer.getListCellRendererComponent
is called, passing the list object and an index of -1.
Parameters: aRenderer - the ListCellRenderer thatdisplays the selected item See Also: JComboBox.setEditor |
setSelectedIndex | public void setSelectedIndex(int anIndex)(Code) | | Selects the item at index anIndex .
Parameters: anIndex - an integer specifying the list item to select,where 0 specifies the first item in the list and -1 indicates no selection exception: IllegalArgumentException - if anIndex < -1 oranIndex is greater than or equal to size |
setSelectedItem | public void setSelectedItem(Object anObject)(Code) | | Sets the selected item in the combo box display area to the object in
the argument.
If anObject is in the list, the display area shows
anObject selected.
If anObject is not in the list and the combo box is
uneditable, it will not change the current selection. For editable
combo boxes, the selection will change to anObject .
If this constitutes a change in the selected item,
ItemListener s added to the combo box will be notified with
one or two ItemEvent s.
If there is a current selected item, an ItemEvent will be
fired and the state change will be ItemEvent.DESELECTED .
If anObject is in the list and is not currently selected
then an ItemEvent will be fired and the state change will
be ItemEvent.SELECTED .
ActionListener s added to the combo box will be notified
with an ActionEvent when this method is called.
Parameters: anObject - the list object to select; use null toclear the selection |
setUI | public void setUI(ComboBoxUI ui)(Code) | | Sets the L&F object that renders this component.
Parameters: ui - the ComboBoxUI L&F object See Also: UIDefaults.getUI |
updateUI | public void updateUI()(Code) | | Resets the UI property to a value from the current look and feel.
See Also: JComponent.updateUI |
Methods inherited from javax.swing.JComponent | void _paintImmediately(int x, int y, int w, int h)(Code)(Java Doc) public void addAncestorListener(AncestorListener listener)(Code)(Java Doc) public void addNotify()(Code)(Java Doc) public synchronized void addVetoableChangeListener(VetoableChangeListener listener)(Code)(Java Doc) boolean alwaysOnTop()(Code)(Java Doc) boolean checkIfChildObscuredBySibling()(Code)(Java Doc) void clientPropertyChanged(Object key, Object oldValue, Object newValue)(Code)(Java Doc) void compWriteObjectNotify()(Code)(Java Doc) void componentInputMapChanged(ComponentInputMap inputMap)(Code)(Java Doc) final static void computeVisibleRect(Component c, Rectangle visibleRect)(Code)(Java Doc) public void computeVisibleRect(Rectangle visibleRect)(Code)(Java Doc) public boolean contains(int x, int y)(Code)(Java Doc) public JToolTip createToolTip()(Code)(Java Doc) public void disable()(Code)(Java Doc) void dndDone()(Code)(Java Doc) TransferHandler.DropLocation dropLocationForPoint(Point p)(Code)(Java Doc) public void enable()(Code)(Java Doc) public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)(Code)(Java Doc) public void firePropertyChange(String propertyName, int oldValue, int newValue)(Code)(Java Doc) public void firePropertyChange(String propertyName, char oldValue, char newValue)(Code)(Java Doc) protected void fireVetoableChange(String propertyName, Object oldValue, Object newValue) throws java.beans.PropertyVetoException(Code)(Java Doc) public AccessibleContext getAccessibleContext()(Code)(Java Doc) public ActionListener getActionForKeyStroke(KeyStroke aKeyStroke)(Code)(Java Doc) final public ActionMap getActionMap()(Code)(Java Doc) final ActionMap getActionMap(boolean create)(Code)(Java Doc) public float getAlignmentX()(Code)(Java Doc) public float getAlignmentY()(Code)(Java Doc) public AncestorListener[] getAncestorListeners()(Code)(Java Doc) public boolean getAutoscrolls()(Code)(Java Doc) public int getBaseline(int width, int height)(Code)(Java Doc) public BaselineResizeBehavior getBaselineResizeBehavior()(Code)(Java Doc) public Border getBorder()(Code)(Java Doc) public Rectangle getBounds(Rectangle rv)(Code)(Java Doc) final public Object getClientProperty(Object key)(Code)(Java Doc) protected Graphics getComponentGraphics(Graphics g)(Code)(Java Doc) public JPopupMenu getComponentPopupMenu()(Code)(Java Doc) public int getConditionForKeyStroke(KeyStroke aKeyStroke)(Code)(Java Doc) boolean getCreatedDoubleBuffer()(Code)(Java Doc) public int getDebugGraphicsOptions()(Code)(Java Doc) public static Locale getDefaultLocale()(Code)(Java Doc) public FontMetrics getFontMetrics(Font font)(Code)(Java Doc) public Graphics getGraphics()(Code)(Java Doc) static void getGraphicsInvoked(Component root)(Code)(Java Doc) public int getHeight()(Code)(Java Doc) public boolean getInheritsPopupMenu()(Code)(Java Doc) final public InputMap getInputMap(int condition)(Code)(Java Doc) final public InputMap getInputMap()(Code)(Java Doc) final InputMap getInputMap(int condition, boolean create)(Code)(Java Doc) public InputVerifier getInputVerifier()(Code)(Java Doc) public Insets getInsets()(Code)(Java Doc) public Insets getInsets(Insets insets)(Code)(Java Doc) public T[] getListeners(Class<T> listenerType)(Code)(Java Doc) public Point getLocation(Point rv)(Code)(Java Doc) static Set<KeyStroke> getManagingFocusBackwardTraversalKeys()(Code)(Java Doc) static Set<KeyStroke> getManagingFocusForwardTraversalKeys()(Code)(Java Doc) public Dimension getMaximumSize()(Code)(Java Doc) public Dimension getMinimumSize()(Code)(Java Doc) public Component getNextFocusableComponent()(Code)(Java Doc) public Point getPopupLocation(MouseEvent event)(Code)(Java Doc) public Dimension getPreferredSize()(Code)(Java Doc) public KeyStroke[] getRegisteredKeyStrokes()(Code)(Java Doc) public JRootPane getRootPane()(Code)(Java Doc) public Dimension getSize(Dimension rv)(Code)(Java Doc) public Point getToolTipLocation(MouseEvent event)(Code)(Java Doc) public String getToolTipText()(Code)(Java Doc) public String getToolTipText(MouseEvent event)(Code)(Java Doc) public Container getTopLevelAncestor()(Code)(Java Doc) public TransferHandler getTransferHandler()(Code)(Java Doc) public String getUIClassID()(Code)(Java Doc) public boolean getVerifyInputWhenFocusTarget()(Code)(Java Doc) public synchronized VetoableChangeListener[] getVetoableChangeListeners()(Code)(Java Doc) public Rectangle getVisibleRect()(Code)(Java Doc) public int getWidth()(Code)(Java Doc) static byte getWriteObjCounter(JComponent comp)(Code)(Java Doc) public int getX()(Code)(Java Doc) public int getY()(Code)(Java Doc) public void grabFocus()(Code)(Java Doc) public boolean isDoubleBuffered()(Code)(Java Doc) public static boolean isLightweightComponent(Component c)(Code)(Java Doc) public boolean isManagingFocus()(Code)(Java Doc) public boolean isOpaque()(Code)(Java Doc) public boolean isOptimizedDrawingEnabled()(Code)(Java Doc) boolean isPainting()(Code)(Java Doc) final public boolean isPaintingForPrint()(Code)(Java Doc) boolean isPaintingOrigin()(Code)(Java Doc) public boolean isPaintingTile()(Code)(Java Doc) public boolean isRequestFocusEnabled()(Code)(Java Doc) public boolean isValidateRoot()(Code)(Java Doc) public void paint(Graphics g)(Code)(Java Doc) protected void paintBorder(Graphics g)(Code)(Java Doc) protected void paintChildren(Graphics g)(Code)(Java Doc) protected void paintComponent(Graphics g)(Code)(Java Doc) void paintForceDoubleBuffered(Graphics g)(Code)(Java Doc) public void paintImmediately(int x, int y, int w, int h)(Code)(Java Doc) public void paintImmediately(Rectangle r)(Code)(Java Doc) void paintToOffscreen(Graphics g, int x, int y, int w, int h, int maxX, int maxY)(Code)(Java Doc) protected String paramString()(Code)(Java Doc) public void print(Graphics g)(Code)(Java Doc) public void printAll(Graphics g)(Code)(Java Doc) protected void printBorder(Graphics g)(Code)(Java Doc) protected void printChildren(Graphics g)(Code)(Java Doc) protected void printComponent(Graphics g)(Code)(Java Doc) protected void processComponentKeyEvent(KeyEvent e)(Code)(Java Doc) protected boolean processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed)(Code)(Java Doc) boolean processKeyBindings(KeyEvent e, boolean pressed)(Code)(Java Doc) static boolean processKeyBindingsForAllComponents(KeyEvent e, Container container, boolean pressed)(Code)(Java Doc) protected void processKeyEvent(KeyEvent e)(Code)(Java Doc) protected void processMouseEvent(MouseEvent e)(Code)(Java Doc) protected void processMouseMotionEvent(MouseEvent e)(Code)(Java Doc) final public void putClientProperty(Object key, Object value)(Code)(Java Doc) boolean rectangleIsObscured(int x, int y, int width, int height)(Code)(Java Doc) public void registerKeyboardAction(ActionListener anAction, String aCommand, KeyStroke aKeyStroke, int aCondition)(Code)(Java Doc) public void registerKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition)(Code)(Java Doc) public void removeAncestorListener(AncestorListener listener)(Code)(Java Doc) public void removeNotify()(Code)(Java Doc) public synchronized void removeVetoableChangeListener(VetoableChangeListener listener)(Code)(Java Doc) public void repaint(long tm, int x, int y, int width, int height)(Code)(Java Doc) public void repaint(Rectangle r)(Code)(Java Doc) public boolean requestDefaultFocus()(Code)(Java Doc) public void requestFocus()(Code)(Java Doc) public boolean requestFocus(boolean temporary)(Code)(Java Doc) public boolean requestFocusInWindow()(Code)(Java Doc) protected boolean requestFocusInWindow(boolean temporary)(Code)(Java Doc) public void resetKeyboardActions()(Code)(Java Doc) public void reshape(int x, int y, int w, int h)(Code)(Java Doc) public void revalidate()(Code)(Java Doc) static Graphics safelyGetGraphics(Component c)(Code)(Java Doc) static Graphics safelyGetGraphics(Component c, Component root)(Code)(Java Doc) public void scrollRectToVisible(Rectangle aRect)(Code)(Java Doc) final public void setActionMap(ActionMap am)(Code)(Java Doc) public void setAlignmentX(float alignmentX)(Code)(Java Doc) public void setAlignmentY(float alignmentY)(Code)(Java Doc) public void setAutoscrolls(boolean autoscrolls)(Code)(Java Doc) public void setBackground(Color bg)(Code)(Java Doc) public void setBorder(Border border)(Code)(Java Doc) public void setComponentPopupMenu(JPopupMenu popup)(Code)(Java Doc) void setCreatedDoubleBuffer(boolean newValue)(Code)(Java Doc) public void setDebugGraphicsOptions(int debugOptions)(Code)(Java Doc) public static void setDefaultLocale(Locale l)(Code)(Java Doc) public void setDoubleBuffered(boolean aFlag)(Code)(Java Doc) Object setDropLocation(TransferHandler.DropLocation location, Object state, boolean forDrop)(Code)(Java Doc) public void setEnabled(boolean enabled)(Code)(Java Doc) public void setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)(Code)(Java Doc) public void setFont(Font font)(Code)(Java Doc) public void setForeground(Color fg)(Code)(Java Doc) public void setInheritsPopupMenu(boolean value)(Code)(Java Doc) final public void setInputMap(int condition, InputMap map)(Code)(Java Doc) public void setInputVerifier(InputVerifier inputVerifier)(Code)(Java Doc) public void setMaximumSize(Dimension maximumSize)(Code)(Java Doc) public void setMinimumSize(Dimension minimumSize)(Code)(Java Doc) public void setNextFocusableComponent(Component aComponent)(Code)(Java Doc) public void setOpaque(boolean isOpaque)(Code)(Java Doc) void setPaintingChild(Component paintingChild)(Code)(Java Doc) public void setPreferredSize(Dimension preferredSize)(Code)(Java Doc) public void setRequestFocusEnabled(boolean requestFocusEnabled)(Code)(Java Doc) public void setToolTipText(String text)(Code)(Java Doc) public void setTransferHandler(TransferHandler newHandler)(Code)(Java Doc) protected void setUI(ComponentUI newUI)(Code)(Java Doc) void setUIProperty(String propertyName, Object value)(Code)(Java Doc) public void setVerifyInputWhenFocusTarget(boolean verifyInputWhenFocusTarget)(Code)(Java Doc) public void setVisible(boolean aFlag)(Code)(Java Doc) static void setWriteObjCounter(JComponent comp, byte count)(Code)(Java Doc) int shouldDebugGraphics()(Code)(Java Doc) void superProcessMouseMotionEvent(MouseEvent e)(Code)(Java Doc) public void unregisterKeyboardAction(KeyStroke aKeyStroke)(Code)(Java Doc) public void update(Graphics g)(Code)(Java Doc) public void updateUI()(Code)(Java Doc)
|
Methods inherited from java.awt.Container | public Component add(Component comp)(Code)(Java Doc) public Component add(String name, Component comp)(Code)(Java Doc) public Component add(Component comp, int index)(Code)(Java Doc) public void add(Component comp, Object constraints)(Code)(Java Doc) public void add(Component comp, Object constraints, int index)(Code)(Java Doc) public synchronized void addContainerListener(ContainerListener l)(Code)(Java Doc) protected void addImpl(Component comp, Object constraints, int index)(Code)(Java Doc) public void addNotify()(Code)(Java Doc) public void addPropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc) public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc) public void applyComponentOrientation(ComponentOrientation o)(Code)(Java Doc) public boolean areFocusTraversalKeysSet(int id)(Code)(Java Doc) public int countComponents()(Code)(Java Doc) public void deliverEvent(Event e)(Code)(Java Doc) public void doLayout()(Code)(Java Doc) public Component findComponentAt(int x, int y)(Code)(Java Doc) public Component findComponentAt(Point p)(Code)(Java Doc) public float getAlignmentX()(Code)(Java Doc) public float getAlignmentY()(Code)(Java Doc) public Component getComponent(int n)(Code)(Java Doc) public Component getComponentAt(int x, int y)(Code)(Java Doc) public Component getComponentAt(Point p)(Code)(Java Doc) public int getComponentCount()(Code)(Java Doc) public int getComponentZOrder(Component comp)(Code)(Java Doc) public Component[] getComponents()(Code)(Java Doc) public synchronized ContainerListener[] getContainerListeners()(Code)(Java Doc) public Set<AWTKeyStroke> getFocusTraversalKeys(int id)(Code)(Java Doc) public FocusTraversalPolicy getFocusTraversalPolicy()(Code)(Java Doc) public Insets getInsets()(Code)(Java Doc) public LayoutManager getLayout()(Code)(Java Doc) public T[] getListeners(Class<T> listenerType)(Code)(Java Doc) public Dimension getMaximumSize()(Code)(Java Doc) public Dimension getMinimumSize()(Code)(Java Doc) public Point getMousePosition(boolean allowChildren) throws HeadlessException(Code)(Java Doc) public Dimension getPreferredSize()(Code)(Java Doc) public Insets insets()(Code)(Java Doc) public void invalidate()(Code)(Java Doc) public boolean isAncestorOf(Component c)(Code)(Java Doc) public boolean isFocusCycleRoot(Container container)(Code)(Java Doc) public boolean isFocusCycleRoot()(Code)(Java Doc) final public boolean isFocusTraversalPolicyProvider()(Code)(Java Doc) public boolean isFocusTraversalPolicySet()(Code)(Java Doc) public void layout()(Code)(Java Doc) public void list(PrintStream out, int indent)(Code)(Java Doc) public void list(PrintWriter out, int indent)(Code)(Java Doc) public Component locate(int x, int y)(Code)(Java Doc) public Dimension minimumSize()(Code)(Java Doc) public void paint(Graphics g)(Code)(Java Doc) public void paintComponents(Graphics g)(Code)(Java Doc) protected String paramString()(Code)(Java Doc) public Dimension preferredSize()(Code)(Java Doc) public void print(Graphics g)(Code)(Java Doc) public void printComponents(Graphics g)(Code)(Java Doc) protected void processContainerEvent(ContainerEvent e)(Code)(Java Doc) protected void processEvent(AWTEvent e)(Code)(Java Doc) public void remove(int index)(Code)(Java Doc) public void remove(Component comp)(Code)(Java Doc) public void removeAll()(Code)(Java Doc) public synchronized void removeContainerListener(ContainerListener l)(Code)(Java Doc) public void removeNotify()(Code)(Java Doc) public void setComponentZOrder(Component comp, int index)(Code)(Java Doc) public void setFocusCycleRoot(boolean focusCycleRoot)(Code)(Java Doc) public void setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)(Code)(Java Doc) public void setFocusTraversalPolicy(FocusTraversalPolicy policy)(Code)(Java Doc) final public void setFocusTraversalPolicyProvider(boolean provider)(Code)(Java Doc) public void setFont(Font f)(Code)(Java Doc) public void setLayout(LayoutManager mgr)(Code)(Java Doc) public void transferFocusDownCycle()(Code)(Java Doc) public void update(Graphics g)(Code)(Java Doc) public void validate()(Code)(Java Doc) protected void validateTree()(Code)(Java Doc)
|
Methods inherited from java.awt.Component | public boolean action(Event evt, Object what)(Code)(Java Doc) public void add(PopupMenu popup)(Code)(Java Doc) public synchronized void addComponentListener(ComponentListener l)(Code)(Java Doc) public synchronized void addFocusListener(FocusListener l)(Code)(Java Doc) public void addHierarchyBoundsListener(HierarchyBoundsListener l)(Code)(Java Doc) public void addHierarchyListener(HierarchyListener l)(Code)(Java Doc) public synchronized void addInputMethodListener(InputMethodListener l)(Code)(Java Doc) public synchronized void addKeyListener(KeyListener l)(Code)(Java Doc) public synchronized void addMouseListener(MouseListener l)(Code)(Java Doc) public synchronized void addMouseMotionListener(MouseMotionListener l)(Code)(Java Doc) public synchronized void addMouseWheelListener(MouseWheelListener l)(Code)(Java Doc) public void addNotify()(Code)(Java Doc) public synchronized void addPropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc) public synchronized void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc) public void applyComponentOrientation(ComponentOrientation orientation)(Code)(Java Doc) public boolean areFocusTraversalKeysSet(int id)(Code)(Java Doc) public Rectangle bounds()(Code)(Java Doc) public int checkImage(Image image, ImageObserver observer)(Code)(Java Doc) public int checkImage(Image image, int width, int height, ImageObserver observer)(Code)(Java Doc) protected AWTEvent coalesceEvents(AWTEvent existingEvent, AWTEvent newEvent)(Code)(Java Doc) public boolean contains(int x, int y)(Code)(Java Doc) public boolean contains(Point p)(Code)(Java Doc) public Image createImage(ImageProducer producer)(Code)(Java Doc) public Image createImage(int width, int height)(Code)(Java Doc) public VolatileImage createVolatileImage(int width, int height)(Code)(Java Doc) public VolatileImage createVolatileImage(int width, int height, ImageCapabilities caps) throws AWTException(Code)(Java Doc) public void deliverEvent(Event e)(Code)(Java Doc) public void disable()(Code)(Java Doc) final protected void disableEvents(long eventsToDisable)(Code)(Java Doc) final public void dispatchEvent(AWTEvent e)(Code)(Java Doc) public void doLayout()(Code)(Java Doc) public void enable()(Code)(Java Doc) public void enable(boolean b)(Code)(Java Doc) final protected void enableEvents(long eventsToEnable)(Code)(Java Doc) public void enableInputMethods(boolean enable)(Code)(Java Doc) protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)(Code)(Java Doc) protected void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)(Code)(Java Doc) protected void firePropertyChange(String propertyName, int oldValue, int newValue)(Code)(Java Doc) public void firePropertyChange(String propertyName, byte oldValue, byte newValue)(Code)(Java Doc) public void firePropertyChange(String propertyName, char oldValue, char newValue)(Code)(Java Doc) public void firePropertyChange(String propertyName, short oldValue, short newValue)(Code)(Java Doc) public void firePropertyChange(String propertyName, long oldValue, long newValue)(Code)(Java Doc) public void firePropertyChange(String propertyName, float oldValue, float newValue)(Code)(Java Doc) public void firePropertyChange(String propertyName, double oldValue, double newValue)(Code)(Java Doc) public AccessibleContext getAccessibleContext()(Code)(Java Doc) public float getAlignmentX()(Code)(Java Doc) public float getAlignmentY()(Code)(Java Doc) public Color getBackground()(Code)(Java Doc) public int getBaseline(int width, int height)(Code)(Java Doc) public BaselineResizeBehavior getBaselineResizeBehavior()(Code)(Java Doc) public Rectangle getBounds()(Code)(Java Doc) public Rectangle getBounds(Rectangle rv)(Code)(Java Doc) public ColorModel getColorModel()(Code)(Java Doc) public Component getComponentAt(int x, int y)(Code)(Java Doc) public Component getComponentAt(Point p)(Code)(Java Doc) public synchronized ComponentListener[] getComponentListeners()(Code)(Java Doc) public ComponentOrientation getComponentOrientation()(Code)(Java Doc) public Cursor getCursor()(Code)(Java Doc) public synchronized DropTarget getDropTarget()(Code)(Java Doc) public Container getFocusCycleRootAncestor()(Code)(Java Doc) public synchronized FocusListener[] getFocusListeners()(Code)(Java Doc) public Set<AWTKeyStroke> getFocusTraversalKeys(int id)(Code)(Java Doc) public boolean getFocusTraversalKeysEnabled()(Code)(Java Doc) public Font getFont()(Code)(Java Doc) public FontMetrics getFontMetrics(Font font)(Code)(Java Doc) public Color getForeground()(Code)(Java Doc) public Graphics getGraphics()(Code)(Java Doc) public GraphicsConfiguration getGraphicsConfiguration()(Code)(Java Doc) public int getHeight()(Code)(Java Doc) public synchronized HierarchyBoundsListener[] getHierarchyBoundsListeners()(Code)(Java Doc) public synchronized HierarchyListener[] getHierarchyListeners()(Code)(Java Doc) public boolean getIgnoreRepaint()(Code)(Java Doc) public InputContext getInputContext()(Code)(Java Doc) public synchronized InputMethodListener[] getInputMethodListeners()(Code)(Java Doc) public InputMethodRequests getInputMethodRequests()(Code)(Java Doc) public synchronized KeyListener[] getKeyListeners()(Code)(Java Doc) public T[] getListeners(Class<T> listenerType)(Code)(Java Doc) public Locale getLocale()(Code)(Java Doc) public Point getLocation()(Code)(Java Doc) public Point getLocation(Point rv)(Code)(Java Doc) public Point getLocationOnScreen()(Code)(Java Doc) public Dimension getMaximumSize()(Code)(Java Doc) public Dimension getMinimumSize()(Code)(Java Doc) public synchronized MouseListener[] getMouseListeners()(Code)(Java Doc) public synchronized MouseMotionListener[] getMouseMotionListeners()(Code)(Java Doc) public Point getMousePosition() throws HeadlessException(Code)(Java Doc) public synchronized MouseWheelListener[] getMouseWheelListeners()(Code)(Java Doc) public String getName()(Code)(Java Doc) public Container getParent()(Code)(Java Doc) public ComponentPeer getPeer()(Code)(Java Doc) public Dimension getPreferredSize()(Code)(Java Doc) public synchronized PropertyChangeListener[] getPropertyChangeListeners()(Code)(Java Doc) public synchronized PropertyChangeListener[] getPropertyChangeListeners(String propertyName)(Code)(Java Doc) public Dimension getSize()(Code)(Java Doc) public Dimension getSize(Dimension rv)(Code)(Java Doc) public Toolkit getToolkit()(Code)(Java Doc) final public Object getTreeLock()(Code)(Java Doc) public int getWidth()(Code)(Java Doc) public int getX()(Code)(Java Doc) public int getY()(Code)(Java Doc) public boolean gotFocus(Event evt, Object what)(Code)(Java Doc) public boolean handleEvent(Event evt)(Code)(Java Doc) public boolean hasFocus()(Code)(Java Doc) public void hide()(Code)(Java Doc) public boolean imageUpdate(Image img, int infoflags, int x, int y, int w, int h)(Code)(Java Doc) public boolean inside(int x, int y)(Code)(Java Doc) public void invalidate()(Code)(Java Doc) public boolean isBackgroundSet()(Code)(Java Doc) public boolean isCursorSet()(Code)(Java Doc) public boolean isDisplayable()(Code)(Java Doc) public boolean isDoubleBuffered()(Code)(Java Doc) public boolean isEnabled()(Code)(Java Doc) public boolean isFocusCycleRoot(Container container)(Code)(Java Doc) public boolean isFocusOwner()(Code)(Java Doc) public boolean isFocusTraversable()(Code)(Java Doc) public boolean isFocusable()(Code)(Java Doc) public boolean isFontSet()(Code)(Java Doc) public boolean isForegroundSet()(Code)(Java Doc) public boolean isLightweight()(Code)(Java Doc) public boolean isMaximumSizeSet()(Code)(Java Doc) public boolean isMinimumSizeSet()(Code)(Java Doc) public boolean isOpaque()(Code)(Java Doc) public boolean isPreferredSizeSet()(Code)(Java Doc) public boolean isShowing()(Code)(Java Doc) public boolean isValid()(Code)(Java Doc) public boolean isVisible()(Code)(Java Doc) public boolean keyDown(Event evt, int key)(Code)(Java Doc) public boolean keyUp(Event evt, int key)(Code)(Java Doc) public void layout()(Code)(Java Doc) public void list()(Code)(Java Doc) public void list(PrintStream out)(Code)(Java Doc) public void list(PrintStream out, int indent)(Code)(Java Doc) public void list(PrintWriter out)(Code)(Java Doc) public void list(PrintWriter out, int indent)(Code)(Java Doc) public Component locate(int x, int y)(Code)(Java Doc) public Point location()(Code)(Java Doc) public boolean lostFocus(Event evt, Object what)(Code)(Java Doc) public Dimension minimumSize()(Code)(Java Doc) public boolean mouseDown(Event evt, int x, int y)(Code)(Java Doc) public boolean mouseDrag(Event evt, int x, int y)(Code)(Java Doc) public boolean mouseEnter(Event evt, int x, int y)(Code)(Java Doc) public boolean mouseExit(Event evt, int x, int y)(Code)(Java Doc) public boolean mouseMove(Event evt, int x, int y)(Code)(Java Doc) public boolean mouseUp(Event evt, int x, int y)(Code)(Java Doc) public void move(int x, int y)(Code)(Java Doc) public void nextFocus()(Code)(Java Doc) public void paint(Graphics g)(Code)(Java Doc) public void paintAll(Graphics g)(Code)(Java Doc) protected String paramString()(Code)(Java Doc) public boolean postEvent(Event e)(Code)(Java Doc) public Dimension preferredSize()(Code)(Java Doc) public boolean prepareImage(Image image, ImageObserver observer)(Code)(Java Doc) public boolean prepareImage(Image image, int width, int height, ImageObserver observer)(Code)(Java Doc) public void print(Graphics g)(Code)(Java Doc) public void printAll(Graphics g)(Code)(Java Doc) protected void processComponentEvent(ComponentEvent e)(Code)(Java Doc) protected void processEvent(AWTEvent e)(Code)(Java Doc) protected void processFocusEvent(FocusEvent e)(Code)(Java Doc) protected void processHierarchyBoundsEvent(HierarchyEvent e)(Code)(Java Doc) protected void processHierarchyEvent(HierarchyEvent e)(Code)(Java Doc) protected void processInputMethodEvent(InputMethodEvent e)(Code)(Java Doc) protected void processKeyEvent(KeyEvent e)(Code)(Java Doc) protected void processMouseEvent(MouseEvent e)(Code)(Java Doc) protected void processMouseMotionEvent(MouseEvent e)(Code)(Java Doc) protected void processMouseWheelEvent(MouseWheelEvent e)(Code)(Java Doc) public void remove(MenuComponent popup)(Code)(Java Doc) public synchronized void removeComponentListener(ComponentListener l)(Code)(Java Doc) public synchronized void removeFocusListener(FocusListener l)(Code)(Java Doc) public void removeHierarchyBoundsListener(HierarchyBoundsListener l)(Code)(Java Doc) public void removeHierarchyListener(HierarchyListener l)(Code)(Java Doc) public synchronized void removeInputMethodListener(InputMethodListener l)(Code)(Java Doc) public synchronized void removeKeyListener(KeyListener l)(Code)(Java Doc) public synchronized void removeMouseListener(MouseListener l)(Code)(Java Doc) public synchronized void removeMouseMotionListener(MouseMotionListener l)(Code)(Java Doc) public synchronized void removeMouseWheelListener(MouseWheelListener l)(Code)(Java Doc) public void removeNotify()(Code)(Java Doc) public synchronized void removePropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc) public synchronized void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc) public void repaint()(Code)(Java Doc) public void repaint(long tm)(Code)(Java Doc) public void repaint(int x, int y, int width, int height)(Code)(Java Doc) public void repaint(long tm, int x, int y, int width, int height)(Code)(Java Doc) public void requestFocus()(Code)(Java Doc) protected boolean requestFocus(boolean temporary)(Code)(Java Doc) public boolean requestFocusInWindow()(Code)(Java Doc) protected boolean requestFocusInWindow(boolean temporary)(Code)(Java Doc) public void reshape(int x, int y, int width, int height)(Code)(Java Doc) public void resize(int width, int height)(Code)(Java Doc) public void resize(Dimension d)(Code)(Java Doc) public void setBackground(Color c)(Code)(Java Doc) public void setBounds(int x, int y, int width, int height)(Code)(Java Doc) public void setBounds(Rectangle r)(Code)(Java Doc) public void setComponentOrientation(ComponentOrientation o)(Code)(Java Doc) public void setCursor(Cursor cursor)(Code)(Java Doc) public synchronized void setDropTarget(DropTarget dt)(Code)(Java Doc) public void setEnabled(boolean b)(Code)(Java Doc) public void setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)(Code)(Java Doc) public void setFocusTraversalKeysEnabled(boolean focusTraversalKeysEnabled)(Code)(Java Doc) public void setFocusable(boolean focusable)(Code)(Java Doc) public void setFont(Font f)(Code)(Java Doc) public void setForeground(Color c)(Code)(Java Doc) public void setIgnoreRepaint(boolean ignoreRepaint)(Code)(Java Doc) public void setLocale(Locale l)(Code)(Java Doc) public void setLocation(int x, int y)(Code)(Java Doc) public void setLocation(Point p)(Code)(Java Doc) public void setMaximumSize(Dimension maximumSize)(Code)(Java Doc) public void setMinimumSize(Dimension minimumSize)(Code)(Java Doc) public void setName(String name)(Code)(Java Doc) public void setPreferredSize(Dimension preferredSize)(Code)(Java Doc) public void setSize(int width, int height)(Code)(Java Doc) public void setSize(Dimension d)(Code)(Java Doc) public void setVisible(boolean b)(Code)(Java Doc) public void show()(Code)(Java Doc) public void show(boolean b)(Code)(Java Doc) public Dimension size()(Code)(Java Doc) public String toString()(Code)(Java Doc) public void transferFocus()(Code)(Java Doc) public void transferFocusBackward()(Code)(Java Doc) public void transferFocusUpCycle()(Code)(Java Doc) public void update(Graphics g)(Code)(Java Doc) public void validate()(Code)(Java Doc)
|
|
|
|