Uses of Class
java.awt.Component
Package
Description
Provides a collection of interfaces and classes that compose the Java Accessibility
Utilities.
Provides the classes necessary to create an applet and the classes an applet
uses to communicate with its applet context.
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Drag and Drop is a direct manipulation gesture found in many Graphical User
Interface systems that provides a mechanism to transfer information between
two entities logically associated with presentation elements in the GUI.
Provides interfaces and classes for dealing with different types of events
fired by AWT components.
Provides classes and interfaces for the input method framework.
Contains classes related to developing beans -- components based on
the JavaBeans architecture.
Provides classes and interfaces relating to bean context.
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides classes and interface for drawing specialized borders around a Swing
component.
Contains classes and interfaces used by the
JColorChooser
component.Provides for events fired by Swing components.
Provides one interface and many abstract classes that Swing uses to provide
its pluggable look-and-feel capabilities.
Provides user interface objects built according to the Basic look and feel.
Provides user interface objects built according to the Java look and feel
(once codenamed Metal), which is the default look and feel.
Synth is a skinnable look and feel in which all painting is delegated.
Provides classes and interfaces for dealing with
javax.swing.JTable
.Provides classes and interfaces that deal with editable and noneditable text
components.
Provides the class
HTMLEditorKit
and supporting classes for creating
HTML text editors.Provides classes and interfaces for dealing with
javax.swing.JTree
.-
Uses of Component in com.sun.java.accessibility.util
Modifier and TypeMethodDescriptionstatic Component
AWTEventMonitor.getComponentWithFocus()
Returns the component that currently has keyboard focus. -
Uses of Component in java.applet
Modifier and TypeClassDescriptionclass
Deprecated, for removal: This API element is subject to removal in a future version.The Applet API is deprecated, no replacement. -
Uses of Component in java.awt
Modifier and TypeClassDescriptionclass
This class creates a labeled button.class
ACanvas
component represents a blank rectangular area of the screen onto which the application can draw or from which the application can trap input events from the user.class
A check box is a graphical component that can be in either an "on" (true
) or "off" (false
) state.class
TheChoice
class presents a pop-up menu of choices.class
A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT components.class
A Dialog is a top-level window with a title and a border that is typically used to take some form of input from the user.class
TheFileDialog
class displays a dialog window from which the user can select a file.class
AFrame
is a top-level window with a title and a border.class
ALabel
object is a component for placing text in a container.class
TheList
component presents the user with a scrolling list of text items.class
Panel
is the simplest container class.class
TheScrollbar
class embodies a scroll bar, a familiar user-interface object.class
A container class which implements automatic horizontal and/or vertical scrolling for a single child component.class
ATextArea
object is a multi-line region that displays text.class
TheTextComponent
class is the superclass of any component that allows the editing of some text.class
ATextField
object is a text component that allows for the editing of a single line of text.class
AWindow
object is a top-level window with no borders and no menubar.Modifier and TypeFieldDescriptionprotected Hashtable
<Component, GridBagConstraints> GridBagLayout.comptable
This hashtable maintains the association between a component and its gridbag constraints.Modifier and TypeMethodDescriptionAppends the specified component to the end of this container.Adds the specified component to this container at the given position.Adds the specified component to this container.Container.findComponentAt
(int x, int y) Locates the visible child component that contains the specified position.Container.findComponentAt
(Point p) Locates the visible child component that contains the specified point.Container.getComponent
(int n) Gets the nth component in this container.ContainerOrderFocusTraversalPolicy.getComponentAfter
(Container aContainer, Component aComponent) Returns the Component that should receive the focus after aComponent.abstract Component
FocusTraversalPolicy.getComponentAfter
(Container aContainer, Component aComponent) Returns the Component that should receive the focus after aComponent.Component.getComponentAt
(int x, int y) Determines if this component or one of its immediate subcomponents contains the (x, y) location, and if so, returns the containing component.Component.getComponentAt
(Point p) Returns the component or subcomponent that contains the specified point.Container.getComponentAt
(int x, int y) Locates the component that contains the x,y position.Container.getComponentAt
(Point p) Gets the component that contains the specified point.ContainerOrderFocusTraversalPolicy.getComponentBefore
(Container aContainer, Component aComponent) Returns the Component that should receive the focus before aComponent.abstract Component
FocusTraversalPolicy.getComponentBefore
(Container aContainer, Component aComponent) Returns the Component that should receive the focus before aComponent.Container.getComponents()
Gets all the components in this container.ContainerOrderFocusTraversalPolicy.getDefaultComponent
(Container aContainer) Returns the default Component to focus.abstract Component
FocusTraversalPolicy.getDefaultComponent
(Container aContainer) Returns the default Component to focus.ContainerOrderFocusTraversalPolicy.getFirstComponent
(Container aContainer) Returns the first Component in the traversal cycle.abstract Component
FocusTraversalPolicy.getFirstComponent
(Container aContainer) Returns the first Component in the traversal cycle.KeyboardFocusManager.getFocusOwner()
Returns the focus owner, if the focus owner is in the same context as the calling thread.Window.getFocusOwner()
Returns the child Component of this Window that has focus if this Window is focused; returns null otherwise.protected Component
KeyboardFocusManager.getGlobalFocusOwner()
Returns the focus owner, even if the calling thread is in a different context than the focus owner.protected Component
KeyboardFocusManager.getGlobalPermanentFocusOwner()
Returns the permanent focus owner, even if the calling thread is in a different context than the permanent focus owner.FocusTraversalPolicy.getInitialComponent
(Window window) Returns the Component that should receive the focus when a Window is made visible for the first time.ContainerOrderFocusTraversalPolicy.getLastComponent
(Container aContainer) Returns the last Component in the traversal cycle.abstract Component
FocusTraversalPolicy.getLastComponent
(Container aContainer) Returns the last Component in the traversal cycle.BorderLayout.getLayoutComponent
(Container target, Object constraints) Returns the component that corresponds to the given constraint location based on the targetContainer
's component orientation.BorderLayout.getLayoutComponent
(Object constraints) Gets the component that was added using the given constraintWindow.getMostRecentFocusOwner()
Returns the child Component of this Window that will receive the focus when this Window is focused.KeyboardFocusManager.getPermanentFocusOwner()
Returns the permanent focus owner, if the permanent focus owner is in the same context as the calling thread.Component.locate
(int x, int y) Deprecated.As of JDK version 1.1, replaced by getComponentAt(int, int).Container.locate
(int x, int y) Deprecated.As of JDK version 1.1, replaced bygetComponentAt(int, int)
.Modifier and TypeMethodDescriptionprotected boolean
Determines whether a Component is an acceptable choice as the new focus owner.protected boolean
Determines whether a Component is an acceptable choice as the new focus owner.Appends the specified component to the end of this container.Adds the specified component to this container at the given position.void
Adds the specified component to the end of this container.void
Adds the specified component to this container with the specified constraints at the specified index.Adds the specified component to this container.protected void
Adds the specified component to this container at the specified index.protected final void
Adds the specified component to this scroll pane container.void
BorderLayout.addLayoutComponent
(Component comp, Object constraints) Adds the specified component to the layout, using the specified constraint object.void
BorderLayout.addLayoutComponent
(String name, Component comp) Deprecated.replaced byaddLayoutComponent(Component, Object)
.void
CardLayout.addLayoutComponent
(Component comp, Object constraints) Adds the specified component to this card layout's internal table of names.void
CardLayout.addLayoutComponent
(String name, Component comp) Deprecated.replaced byaddLayoutComponent(Component, Object)
.void
FlowLayout.addLayoutComponent
(String name, Component comp) Adds the specified component to the layout.void
GridBagLayout.addLayoutComponent
(Component comp, Object constraints) Adds the specified component to the layout, using the specifiedconstraints
object.void
GridBagLayout.addLayoutComponent
(String name, Component comp) Has no effect, since this layout manager does not use a per-component string.void
GridLayout.addLayoutComponent
(String name, Component comp) Adds the specified component with the specified name to the layout.void
LayoutManager.addLayoutComponent
(String name, Component comp) If the layout manager uses a per-component string, adds the componentcomp
to the layout, associating it with the string specified byname
.void
LayoutManager2.addLayoutComponent
(Component comp, Object constraints) Adds the specified component to the layout, using the specified constraint object.<T extends DragGestureRecognizer>
TToolkit.createDragGestureRecognizer
(Class<T> abstractRecognizerClass, DragSource ds, Component c, int srcActions, DragGestureListener dgl) Creates a concrete, platform dependent, subclass of the abstract DragGestureRecognizer class requested, and associates it with the DragSource, Component and DragGestureListener specified.protected void
DefaultKeyboardFocusManager.dequeueKeyEvents
(long after, Component untilFocused) Releases for normal dispatching to the current focus owner all KeyEvents which were enqueued because of a call toenqueueKeyEvents
with the same timestamp and Component.protected abstract void
KeyboardFocusManager.dequeueKeyEvents
(long after, Component untilFocused) Called by the AWT to notify the KeyboardFocusManager that it should cancel delayed dispatching of KeyEvents.protected void
DefaultKeyboardFocusManager.discardKeyEvents
(Component comp) Discards all KeyEvents which were enqueued because of one or more calls toenqueueKeyEvents
with the specified Component, or one of its descendants.protected abstract void
KeyboardFocusManager.discardKeyEvents
(Component comp) Called by the AWT to notify the KeyboardFocusManager that it should cancel delayed dispatching of KeyEvents.protected void
DefaultKeyboardFocusManager.enqueueKeyEvents
(long after, Component untilFocused) Delays dispatching of KeyEvents until the specified Component becomes the focus owner.protected abstract void
KeyboardFocusManager.enqueueKeyEvents
(long after, Component untilFocused) Called by the AWT to notify the KeyboardFocusManager that it should delay dispatching of KeyEvents until the specified Component becomes the focus owner.void
DefaultKeyboardFocusManager.focusNextComponent
(Component aComponent) Focuses the Component after aComponent, typically based on a FocusTraversalPolicy.abstract void
KeyboardFocusManager.focusNextComponent
(Component aComponent) Focuses the Component after aComponent, typically based on a FocusTraversalPolicy.void
DefaultKeyboardFocusManager.focusPreviousComponent
(Component aComponent) Focuses the Component before aComponent, typically based on a FocusTraversalPolicy.abstract void
KeyboardFocusManager.focusPreviousComponent
(Component aComponent) Focuses the Component before aComponent, typically based on a FocusTraversalPolicy.ContainerOrderFocusTraversalPolicy.getComponentAfter
(Container aContainer, Component aComponent) Returns the Component that should receive the focus after aComponent.abstract Component
FocusTraversalPolicy.getComponentAfter
(Container aContainer, Component aComponent) Returns the Component that should receive the focus after aComponent.ContainerOrderFocusTraversalPolicy.getComponentBefore
(Container aContainer, Component aComponent) Returns the Component that should receive the focus before aComponent.abstract Component
FocusTraversalPolicy.getComponentBefore
(Container aContainer, Component aComponent) Returns the Component that should receive the focus before aComponent.int
Container.getComponentZOrder
(Component comp) Returns the z-order index of the component inside the container.BorderLayout.getConstraints
(Component comp) Gets the constraints for the specified componentGridBagLayout.getConstraints
(Component comp) Gets the constraints for the specified component.protected static Container
Toolkit.getNativeContainer
(Component c) Give native peers the ability to query the native container given a native component (eg the direct parent may be lightweight).boolean
Container.isAncestorOf
(Component c) Checks if the component is contained in the component hierarchy of this container.protected GridBagConstraints
GridBagLayout.lookupConstraints
(Component comp) Retrieves the constraints for the specified component.void
DefaultKeyboardFocusManager.processKeyEvent
(Component focusedComponent, KeyEvent e) This method initiates a focus traversal operation if and only if the KeyEvent represents a focus traversal key for the specified focusedComponent.abstract void
KeyboardFocusManager.processKeyEvent
(Component focusedComponent, KeyEvent e) This method initiates a focus traversal operation if and only if the KeyEvent represents a focus traversal key for the specified focusedComponent.final void
KeyboardFocusManager.redispatchEvent
(Component target, AWTEvent e) Redispatches an AWTEvent in such a way that the AWT event dispatcher will not recursively request that the KeyboardFocusManager, or any installed KeyEventDispatchers, dispatch the event again.void
Removes the specified component from this container.void
BorderLayout.removeLayoutComponent
(Component comp) Removes the specified component from this border layout.void
CardLayout.removeLayoutComponent
(Component comp) Removes the specified component from the layout.void
FlowLayout.removeLayoutComponent
(Component comp) Removes the specified component from the layout.void
GridBagLayout.removeLayoutComponent
(Component comp) Removes the specified component from this layout.void
GridLayout.removeLayoutComponent
(Component comp) Removes the specified component from the layout.void
LayoutManager.removeLayoutComponent
(Component comp) Removes the specified component from the layout.void
Container.setComponentZOrder
(Component comp, int index) Moves the specified component to the specified z-order index in the container.void
GridBagLayout.setConstraints
(Component comp, GridBagConstraints constraints) Sets the constraints for the specified component in this layout.protected void
KeyboardFocusManager.setGlobalFocusOwner
(Component focusOwner) Sets the focus owner.protected void
KeyboardFocusManager.setGlobalPermanentFocusOwner
(Component permanentFocusOwner) Sets the permanent focus owner.void
Window.setLocationRelativeTo
(Component c) Sets the location of the window relative to the specified component according to the following scenarios.void
Shows the popup menu at the x, y position relative to an origin component.void
DefaultKeyboardFocusManager.upFocusCycle
(Component aComponent) Moves the focus up one focus traversal cycle.abstract void
KeyboardFocusManager.upFocusCycle
(Component aComponent) Moves the focus up one focus traversal cycle.ModifierConstructorDescriptionMediaTracker
(Component comp) Creates a media tracker to track images for a given component. -
Uses of Component in java.awt.dnd
Modifier and TypeFieldDescriptionprotected Component
DragGestureRecognizer.component
TheComponent
associated with thisDragGestureRecognizer
.Modifier and TypeMethodDescriptionDragGestureEvent.getComponent()
Returns theComponent
associated with thisDragGestureEvent
.DragGestureRecognizer.getComponent()
This method returns theComponent
that is to be "observed" by theDragGestureRecognizer
for drag initiating gestures.DragSourceContext.getComponent()
Returns theComponent
associated with thisDragSourceContext
.DropTarget.getComponent()
Gets theComponent
associated with thisDropTarget
.DropTargetContext.getComponent()
This method returns theComponent
associated with thisDropTargetContext
.Modifier and TypeMethodDescriptionDragSource.createDefaultDragGestureRecognizer
(Component c, int actions, DragGestureListener dgl) Creates a newDragGestureRecognizer
that implements the default abstract subclass ofDragGestureRecognizer
for thisDragSource
, and sets the specifiedComponent
andDragGestureListener
on the newly created object.<T extends DragGestureRecognizer>
TDragSource.createDragGestureRecognizer
(Class<T> recognizerAbstractClass, Component c, int actions, DragGestureListener dgl) Creates a newDragGestureRecognizer
that implements the specified abstract subclass ofDragGestureRecognizer
, and sets the specifiedComponent
andDragGestureListener
on the newly created object.protected DropTarget.DropTargetAutoScroller
DropTarget.createDropTargetAutoScroller
(Component c, Point p) create an embedded autoscrollervoid
DragGestureRecognizer.setComponent
(Component c) set the Component that the DragGestureRecognizer is associated with registerListeners() and unregisterListeners() are called as a side effect as appropriate.void
DropTarget.setComponent
(Component c) Note: this interface is required to permit the safe association of a DropTarget with a Component in one of two ways, either:component.setDropTarget(droptarget);
ordroptarget.setComponent(component);
ModifierConstructorDescriptionprotected
Construct a newDragGestureRecognizer
given theDragSource
to be used in this Drag and Drop operation, and theComponent
thisDragGestureRecognizer
should "observe" for drag initiating gestures.protected
DragGestureRecognizer
(DragSource ds, Component c, int sa) Construct a newDragGestureRecognizer
given theDragSource
to be used in this Drag and Drop operation, theComponent
thisDragGestureRecognizer
should "observe" for drag initiating gestures, and the action(s) supported for this Drag and Drop operation.protected
DragGestureRecognizer
(DragSource ds, Component c, int sa, DragGestureListener dgl) Construct a newDragGestureRecognizer
given theDragSource
to be used in this Drag and Drop operation, theComponent
thisDragGestureRecognizer
should "observe" for drag initiating gestures, the action(s) supported for this Drag and Drop operation, and theDragGestureListener
to notify once a drag initiating gesture has been detected.DropTarget
(Component c, int ops, DropTargetListener dtl) Creates aDropTarget
given theComponent
to associate itself with, anint
representing the default acceptable action(s) to support, and aDropTargetListener
to handle event processing.DropTarget
(Component c, int ops, DropTargetListener dtl, boolean act) Creates aDropTarget
given theComponent
to associate itself with, anint
representing the default acceptable action(s) to support, aDropTargetListener
to handle event processing, and aboolean
indicating if theDropTarget
is currently accepting drops.DropTarget
(Component c, int ops, DropTargetListener dtl, boolean act, FlavorMap fm) Creates a new DropTarget given theComponent
to associate itself with, anint
representing the default acceptable action(s) to support, aDropTargetListener
to handle event processing, aboolean
indicating if theDropTarget
is currently accepting drops, and aFlavorMap
to use (or null for the defaultFlavorMap
).DropTarget
(Component c, DropTargetListener dtl) Creates aDropTarget
given theComponent
to associate itself with, and theDropTargetListener
to handle event processing.protected
construct a DropTargetAutoScrollerprotected
Construct a newMouseDragGestureRecognizer
given theDragSource
for theComponent
c, and theComponent
to observe.protected
MouseDragGestureRecognizer
(DragSource ds, Component c, int act) Construct a newMouseDragGestureRecognizer
given theDragSource
for theComponent
c, theComponent
to observe, and the action(s) permitted for this drag operation.protected
MouseDragGestureRecognizer
(DragSource ds, Component c, int act, DragGestureListener dgl) Construct a newMouseDragGestureRecognizer
given theDragSource
for theComponent
c, theComponent
to observe, the action(s) permitted for this drag operation, and theDragGestureListener
to notify when a drag gesture is detected. -
Uses of Component in java.awt.event
Modifier and TypeMethodDescriptionHierarchyEvent.getChanged()
Returns the Component at the top of the hierarchy which was changed.ContainerEvent.getChild()
Returns the component that was affected by the event.ComponentEvent.getComponent()
Returns the originator of the event.HierarchyEvent.getComponent()
Returns the originator of the event.FocusEvent.getOppositeComponent()
Returns the other Component involved in this focus change.ModifierConstructorDescriptionComponentEvent
(Component source, int id) Constructs aComponentEvent
object.ContainerEvent
(Component source, int id, Component child) Constructs aContainerEvent
object.FocusEvent
(Component source, int id) Constructs aFocusEvent
object and identifies it as a permanent change in focus.FocusEvent
(Component source, int id, boolean temporary) Constructs aFocusEvent
object and identifies whether or not the change is temporary.FocusEvent
(Component source, int id, boolean temporary, Component opposite) Constructs aFocusEvent
object with the specified temporary state, oppositeComponent
and theCause.UNKNOWN
cause.FocusEvent
(Component source, int id, boolean temporary, Component opposite, FocusEvent.Cause cause) Constructs aFocusEvent
object with the specified temporary state, oppositeComponent
and the cause.HierarchyEvent
(Component source, int id, Component changed, Container changedParent) Constructs anHierarchyEvent
object to identify a change in theComponent
hierarchy.HierarchyEvent
(Component source, int id, Component changed, Container changedParent, long changeFlags) Constructs anHierarchyEvent
object to identify a change in theComponent
hierarchy.InputMethodEvent
(Component source, int id, long when, AttributedCharacterIterator text, int committedCharacterCount, TextHitInfo caret, TextHitInfo visiblePosition) Constructs anInputMethodEvent
with the specified source component, type, time, text, caret, and visiblePosition.InputMethodEvent
(Component source, int id, TextHitInfo caret, TextHitInfo visiblePosition) Constructs anInputMethodEvent
with the specified source component, type, caret, and visiblePosition.InputMethodEvent
(Component source, int id, AttributedCharacterIterator text, int committedCharacterCount, TextHitInfo caret, TextHitInfo visiblePosition) Constructs anInputMethodEvent
with the specified source component, type, text, caret, and visiblePosition.Deprecated.as of JDK1.1; useKeyEvent(Component, int, long, int, int, char)
insteadConstructs aKeyEvent
object.KeyEvent
(Component source, int id, long when, int modifiers, int keyCode, char keyChar, int keyLocation) Constructs aKeyEvent
object.MouseEvent
(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger) Constructs aMouseEvent
object with the specified source component, type, modifiers, coordinates, click count, and popupTrigger flag.MouseEvent
(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int button) Constructs aMouseEvent
object with the specified source component, type, time, modifiers, coordinates, click count, popupTrigger flag, and button number.MouseEvent
(Component source, int id, long when, int modifiers, int x, int y, int xAbs, int yAbs, int clickCount, boolean popupTrigger, int button) Constructs aMouseEvent
object with the specified source component, type, time, modifiers, coordinates, absolute coordinates, click count, popupTrigger flag, and button number.MouseWheelEvent
(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int scrollType, int scrollAmount, int wheelRotation) Constructs aMouseWheelEvent
object with the specified source component, type, modifiers, coordinates, scroll type, scroll amount, and wheel rotation.MouseWheelEvent
(Component source, int id, long when, int modifiers, int x, int y, int xAbs, int yAbs, int clickCount, boolean popupTrigger, int scrollType, int scrollAmount, int wheelRotation) Constructs aMouseWheelEvent
object with the specified source component, type, modifiers, coordinates, absolute coordinates, scroll type, scroll amount, and wheel rotation.MouseWheelEvent
(Component source, int id, long when, int modifiers, int x, int y, int xAbs, int yAbs, int clickCount, boolean popupTrigger, int scrollType, int scrollAmount, int wheelRotation, double preciseWheelRotation) Constructs aMouseWheelEvent
object with the specified source component, type, modifiers, coordinates, absolute coordinates, scroll type, scroll amount, and wheel rotation.PaintEvent
(Component source, int id, Rectangle updateRect) Constructs aPaintEvent
object with the specified source component and type. -
Uses of Component in java.awt.im
Modifier and TypeMethodDescriptionvoid
InputContext.removeNotify
(Component client) Notifies the input context that a client component has been removed from its containment hierarchy, or that input method support has been disabled for the component. -
Uses of Component in java.beans
Modifier and TypeMethodDescriptionPropertyEditor.getCustomEditor()
A PropertyEditor may choose to make available a full custom Component that edits its property value.PropertyEditorSupport.getCustomEditor()
A PropertyEditor may chose to make available a full custom Component that edits its property value. -
Uses of Component in java.beans.beancontext
Modifier and TypeMethodDescriptionBeanContextChildComponentProxy.getComponent()
Gets thejava.awt.Component
associated with thisBeanContextChild
. -
Uses of Component in javax.swing
Modifier and TypeClassDescriptionfinal class
JLayer
is a universal decorator for Swing components which enables you to implement various advanced painting effects as well as receive notifications of allAWTEvent
s generated within its borders.Modifier and TypeClassDescriptionclass
Defines common behaviors for buttons and menu items.class
A lightweight container that uses a BoxLayout object as its layout manager.static class
An implementation of a lightweight component that participates in layout but has no view.class
This class is inserted in between cell renderers and the components that use them.class
Renders an item in a list.static class
A subclass of DefaultListCellRenderer that implements UIResource.class
Deprecated, for removal: This API element is subject to removal in a future version.The Applet API is deprecated, no replacement.class
An implementation of a "push" button.class
An implementation of a check box -- an item that can be selected or deselected, and which displays its state to the user.class
A menu item that can be selected or deselected.class
JColorChooser
provides a pane of controls designed to allow a user to manipulate and select a color.class
JComboBox<E>
A component that combines a button or editable field and a drop-down list.class
The base class for all Swing components except top-level containers.class
A container used to create a multiple-document interface or a virtual desktop.class
The main class for creating a dialog window.class
A text component to edit various kinds of content.class
JFileChooser
provides a simple mechanism for the user to choose a file.class
JFormattedTextField
extendsJTextField
adding support for formatting arbitrary values, as well as retrieving a particular object once the user has edited the text.class
An extended version ofjava.awt.Frame
that adds support for the JFC/Swing component architecture.class
A lightweight object that provides many of the features of a native frame, including dragging, closing, becoming an icon, resizing, title display, and support for a menu bar.static class
This component represents an iconified version of aJInternalFrame
.class
A display area for a short text string or an image, or both.final class
JLayer
is a universal decorator for Swing components which enables you to implement various advanced painting effects as well as receive notifications of allAWTEvent
s generated within its borders.class
JLayeredPane
adds depth to a JFC/Swing container, allowing components to overlap each other when needed.class
JList<E>
A component that displays a list of objects and allows the user to select one or more items.class
An implementation of a menu -- a popup window containingJMenuItem
s that is displayed when the user selects an item on theJMenuBar
.class
An implementation of a menu bar.class
An implementation of an item in a menu.class
JOptionPane
makes it easy to pop up a standard dialog box that prompts users for a value or informs them of something.class
JPanel
is a generic lightweight container.class
JPasswordField
is a lightweight component that allows the editing of a single line of text where the view indicates something was typed, but does not show the original characters.class
An implementation of a popup menu -- a small window that pops up and displays a series of choices.static class
A popup menu-specific separator.class
A component that visually displays the progress of some task.class
An implementation of a radio button -- an item that can be selected or deselected, and which displays its state to the user.class
An implementation of a radio button menu item.class
A lightweight container used behind the scenes byJFrame
,JDialog
,JWindow
,JApplet
, andJInternalFrame
.class
An implementation of a scrollbar.class
Provides a scrollable view of a lightweight component.protected class
By defaultJScrollPane
creates scrollbars that are instances of this class.class
JSeparator
provides a general purpose component for implementing divider lines - most commonly used as a divider between menu items that breaks them up into logical groupings.class
A component that lets the user graphically select a value by sliding a knob within a bounded interval.class
A single line input field that lets the user select a number or an object value from an ordered sequence.static class
An editor for aJSpinner
whose model is aSpinnerDateModel
.static class
A simple base class for more specialized editors that displays a read-only view of the model's current value with aJFormattedTextField
.static class
An editor for aJSpinner
whose model is aSpinnerListModel
.static class
An editor for aJSpinner
whose model is aSpinnerNumberModel
.class
JSplitPane
is used to divide two (and only two)Component
s.class
A component that lets the user switch between a group of components by clicking on a tab with a given title and/or icon.class
TheJTable
is used to display and edit regular two-dimensional tables of cells.class
AJTextArea
is a multi-line area that displays plain text.class
JTextField
is a lightweight component that allows the editing of a single line of text.class
A text component that can be marked up with attributes that are represented graphically.class
An implementation of a two-state button.class
JToolBar
provides a component that is useful for displaying commonly usedAction
s or controls.static class
A toolbar-specific separator.class
Used to display a "Tip" for a Component.class
A control that displays a set of hierarchical data as an outline.class
The "viewport" or "porthole" through which you see the underlying information.class
AJWindow
is a container that can be displayed anywhere on the user's desktop.Modifier and TypeFieldDescriptionprotected static final Component
ImageIcon.component
Deprecated.since 1.8protected Component
JTable.editorComp
If editing, theComponent
that is handling the editing.protected Component
JRootPane.glassPane
The glass pane that overlays the menu bar and content pane, so it can intercept mouse movements and such.protected Component
JLabel.labelFor
The Component this label is for; null if the label is not the label for a componentprotected Component
JSplitPane.leftComponent
The left or top component.protected Component
JScrollPane.lowerLeft
The component to display in the lower left corner.protected Component
ScrollPaneLayout.lowerLeft
The component to display in the lower left corner.protected Component
JScrollPane.lowerRight
The component to display in the lower right corner.protected Component
ScrollPaneLayout.lowerRight
The component to display in the lower right corner.protected Component
JSplitPane.rightComponent
The right or bottom component.protected Component
JScrollPane.upperLeft
The component to display in the upper left corner.protected Component
ScrollPaneLayout.upperLeft
The component to display in the upper left corner.protected Component
JScrollPane.upperRight
The component to display in the upper right corner.protected Component
ScrollPaneLayout.upperRight
The component to display in the upper right corner.Modifier and TypeMethodDescriptionAppends a component to the end of this menu.Adds the specified component to this container at the given position.Adds acomponent
with a tab title defaulting to the name of the component which is the result of callingcomponent.getName
.Adds acomponent
at the specified tab index with a tab title defaulting to the name of the component.Adds acomponent
with the specified tab title.protected Component
ScrollPaneLayout.addSingletonComponent
(Component oldC, Component newC) Removes an existing component.MenuSelectionManager.componentForPoint
(Component source, Point sourcePoint) Returns the component in the currently selected path which contains sourcePoint.protected Component
JRootPane.createGlassPane()
Called by the constructor methods to create the defaultglassPane
.static Component
Box.createGlue()
Creates an invisible "glue" component that can be useful in a Box whose visible components have a maximum width (for a horizontal box) or height (for a vertical box).static Component
Box.createHorizontalGlue()
Creates a horizontal glue component.static Component
Box.createHorizontalStrut
(int width) Creates an invisible, fixed-width component.static Component
Box.createRigidArea
(Dimension d) Creates an invisible component that's always the specified size.static Component
Box.createVerticalGlue()
Creates a vertical glue component.static Component
Box.createVerticalStrut
(int height) Creates an invisible, fixed-height component.static Component
SwingUtilities.findFocusOwner
(Component c) Deprecated.As of 1.4, replaced byKeyboardFocusManager.getFocusOwner()
.JSplitPane.getBottomComponent()
Returns the component below, or to the right of the divider.DefaultCellEditor.getComponent()
Returns a reference to the editor component.JMenu.getComponent()
Returns thejava.awt.Component
used to paint thisMenuElement
.JMenuBar.getComponent()
Implemented to be aMenuElement
.JMenuItem.getComponent()
Returns thejava.awt.Component
used to paint this object.JPopupMenu.getComponent()
Returns thisJPopupMenu
component.MenuElement.getComponent()
This method should return thejava.awt.Component
used to paint the receiving element.Renderer.getComponent()
Returns the component used to render the value.TransferHandler.TransferSupport.getComponent()
Returns the target component of this transfer.DefaultFocusManager.getComponentAfter
(Container aContainer, Component aComponent) Returns the component after.LayoutFocusTraversalPolicy.getComponentAfter
(Container aContainer, Component aComponent) Returns the Component that should receive the focus after aComponent.SortingFocusTraversalPolicy.getComponentAfter
(Container aContainer, Component aComponent) Returns the Component that should receive the focus after aComponent.JTabbedPane.getComponentAt
(int index) Returns the component atindex
.JMenuBar.getComponentAtIndex
(int i) Deprecated.replaced bygetComponent(int i)
JPopupMenu.getComponentAtIndex
(int i) Deprecated.replaced byContainer.getComponent(int)
JToolBar.getComponentAtIndex
(int i) Returns the component at the specified index.DefaultFocusManager.getComponentBefore
(Container aContainer, Component aComponent) Returns the component before.LayoutFocusTraversalPolicy.getComponentBefore
(Container aContainer, Component aComponent) Returns the Component that should receive the focus before aComponent.SortingFocusTraversalPolicy.getComponentBefore
(Container aContainer, Component aComponent) Returns the Component that should receive the focus before aComponent.JLayeredPane.getComponentsInLayer
(int layer) Returns an array of the components in the specified layer.Returns the component at the specified corner.Returns theComponent
at the specified corner.protected Component
JTable.AccessibleJTable.AccessibleJTableCell.getCurrentComponent()
Gets the table cell renderer component.static Component
SwingUtilities.getDeepestComponentAt
(Component parent, int x, int y) Returns the deepest visible descendent Component ofparent
that contains the locationx
,y
.SortingFocusTraversalPolicy.getDefaultComponent
(Container aContainer) Returns the default Component to focus.ComboBoxEditor.getEditorComponent()
Returns the component that should be added to the tree hierarchy for this editorJTable.getEditorComponent()
Returns the component that is handling the editing session.DefaultFocusManager.getFirstComponent
(Container aContainer) Returns the first component.LayoutFocusTraversalPolicy.getFirstComponent
(Container aContainer) Returns the first Component in the traversal cycle.SortingFocusTraversalPolicy.getFirstComponent
(Container aContainer) Returns the first Component in the traversal cycle.JInternalFrame.getFocusOwner()
If thisJInternalFrame
is active, returns the child that has focus.JApplet.getGlassPane()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the glassPane object for this applet.JDialog.getGlassPane()
Returns theglassPane
object for this dialog.JFrame.getGlassPane()
Returns theglassPane
object for this frame.JInternalFrame.getGlassPane()
Returns the glass pane for this internal frame.JRootPane.getGlassPane()
Returns the current glass pane for thisJRootPane
.JWindow.getGlassPane()
Returns theglassPane Component
for this window.RootPaneContainer.getGlassPane()
Returns the glassPane.InternalFrameFocusTraversalPolicy.getInitialComponent
(JInternalFrame frame) Returns the Component that should receive the focus when a JInternalFrame is selected for the first time.JPopupMenu.getInvoker()
Returns the component which is the 'invoker' of this popup menu.JLabel.getLabelFor()
Get the component this is labelling.DefaultFocusManager.getLastComponent
(Container aContainer) Returns the last component.LayoutFocusTraversalPolicy.getLastComponent
(Container aContainer) Returns the last Component in the traversal cycle.SortingFocusTraversalPolicy.getLastComponent
(Container aContainer) Returns the last Component in the traversal cycle.JSplitPane.getLeftComponent()
Returns the component to the left (or above) the divider.DefaultListCellRenderer.getListCellRendererComponent
(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus) ListCellRenderer.getListCellRendererComponent
(JList<? extends E> list, E value, int index, boolean isSelected, boolean cellHasFocus) Return a component that has been configured to display the specified value.JMenu.getMenuComponent
(int n) Returns the component at positionn
.JMenu.getMenuComponents()
Returns an array ofComponent
s of the menu's subcomponents.JInternalFrame.getMostRecentFocusOwner()
Returns the child component of thisJInternalFrame
that will receive the focus when thisJInternalFrame
is selected.JComponent.getNextFocusableComponent()
Deprecated.As of 1.4, replaced byFocusTraversalPolicy
.JSplitPane.getRightComponent()
Returns the component to the right (or below) the divider.static Component
Returns the root component for the current component tree.JTabbedPane.getSelectedComponent()
Returns the currently selected component for this tabbedpane.JTabbedPane.getTabComponentAt
(int index) Returns the tab component atindex
.DefaultCellEditor.getTableCellEditorComponent
(JTable table, Object value, boolean isSelected, int row, int column) Implements theTableCellEditor
interface.JSplitPane.getTopComponent()
Returns the component above, or to the left of the divider.DefaultCellEditor.getTreeCellEditorComponent
(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) Implements theTreeCellEditor
interface.static Component
SwingUtilities.getUnwrappedView
(JViewport viewport) Returns the firstJViewport
's descendant which is not an instance ofJLayer
.JViewport.getView()
Returns theJViewport
's one child ornull
.JTable.prepareEditor
(TableCellEditor editor, int row, int column) Prepares the editor by querying the data model for the value and selection state of the cell atrow
,column
.JTable.prepareRenderer
(TableCellRenderer renderer, int row, int column) Prepares the renderer by querying the data model for the value and selection state of the cell atrow
,column
.Modifier and TypeMethodDescriptionprotected Comparator
<? super Component> SortingFocusTraversalPolicy.getComparator()
Returns the Comparator which will be used to sort the Components in a focus traversal cycle.JLayeredPane.getComponentToLayer()
Returns the hashtable that maps components to layers.Modifier and TypeMethodDescriptionprotected boolean
Determines whether the specifiedComponent
is an acceptable choice as the new focus owner.protected boolean
Determines whether a Component is an acceptable choice as the new focus owner.Appends a component to the end of this menu.Adds the specified component to this container at the given position.Adds acomponent
with a tab title defaulting to the name of the component which is the result of callingcomponent.getName
.Adds acomponent
at the specified tab index with a tab title defaulting to the name of the component.void
Adds acomponent
to the tabbed pane.void
Adds acomponent
at the specified tab index.Adds acomponent
with the specified tab title.GroupLayout.Group.addComponent
(Component component) Adds aComponent
to thisGroup
.GroupLayout.Group.addComponent
(Component component, int min, int pref, int max) Adds aComponent
to thisGroup
with the specified size.GroupLayout.ParallelGroup.addComponent
(Component component) Adds aComponent
to thisGroup
.GroupLayout.ParallelGroup.addComponent
(Component component, int min, int pref, int max) Adds aComponent
to thisGroup
with the specified size.GroupLayout.ParallelGroup.addComponent
(Component component, GroupLayout.Alignment alignment) Adds aComponent
to thisParallelGroup
with the specified alignment.GroupLayout.ParallelGroup.addComponent
(Component component, GroupLayout.Alignment alignment, int min, int pref, int max) Adds aComponent
to thisParallelGroup
with the specified alignment and size.GroupLayout.SequentialGroup.addComponent
(boolean useAsBaseline, Component component) Adds aComponent
to thisGroup
.GroupLayout.SequentialGroup.addComponent
(boolean useAsBaseline, Component component, int min, int pref, int max) Adds aComponent
to thisGroup
with the specified size.GroupLayout.SequentialGroup.addComponent
(Component component) Adds aComponent
to thisGroup
.GroupLayout.SequentialGroup.addComponent
(Component component, int min, int pref, int max) Adds aComponent
to thisGroup
with the specified size.protected void
Adds the specified component to this container at the specified index, refer toContainer.addImpl(Component, Object, int)
for a complete description of this method.protected void
If the specified component is already a child of this then we don't bother doing anything - stacking order doesn't matter for cell renderer components (CellRendererPane doesn't paint anyway).protected void
Deprecated, for removal: This API element is subject to removal in a future version.Adds the specified childComponent
.protected void
Adds the specified component to this container at the specified index.protected void
Adds the specified childComponent
.protected void
Adds the specified childComponent
.protected void
Adds the specified childComponent
.protected void
This method is not supported byJLayer
and always throwsUnsupportedOperationException
protected void
Overridden to enforce the position of the glass component as the zero child.protected void
Adds the specified component to this split pane.protected void
If aJButton
is being added, it is initially set to be disabled.protected void
Sets theJViewport
's one lightweight child, which can benull
.protected void
Adds the specified childComponent
.void
BoxLayout.addLayoutComponent
(Component comp, Object constraints) Not used by this class.void
BoxLayout.addLayoutComponent
(String name, Component comp) Not used by this class.void
GroupLayout.addLayoutComponent
(Component component, Object constraints) Notification that aComponent
has been added to the parent container.void
GroupLayout.addLayoutComponent
(String name, Component component) Notification that aComponent
has been added to the parent container.void
JRootPane.RootLayout.addLayoutComponent
(Component comp, Object constraints) void
JRootPane.RootLayout.addLayoutComponent
(String name, Component comp) void
JSpinner.DefaultEditor.addLayoutComponent
(String name, Component child) ThisLayoutManager
method does nothing.void
OverlayLayout.addLayoutComponent
(Component comp, Object constraints) Adds the specified component to the layout, using the specified constraint object.void
OverlayLayout.addLayoutComponent
(String name, Component comp) Adds the specified component to the layout.void
ScrollPaneLayout.addLayoutComponent
(String s, Component c) Adds the specified component to the layout.void
SpringLayout.addLayoutComponent
(Component component, Object constraints) Ifconstraints
is an instance ofSpringLayout.Constraints
, associates the constraints with the specified component.void
SpringLayout.addLayoutComponent
(String name, Component c) Has no effect, since this layout manager does not use a per-component string.void
ViewportLayout.addLayoutComponent
(String name, Component c) Adds the specified component to the layout.protected Component
ScrollPaneLayout.addSingletonComponent
(Component oldC, Component newC) Removes an existing component.void
Adds acomponent
represented by atitle
and no icon.void
Adds acomponent
represented by atitle
and/oricon
, either of which can benull
.void
Adds acomponent
andtip
represented by atitle
and/oricon
, either of which can benull
.boolean
DefaultFocusManager.compareTabOrder
(Component a, Component b) Compares the components by their focus traversal cycle order.MenuSelectionManager.componentForPoint
(Component source, Point sourcePoint) Returns the component in the currently selected path which contains sourcePoint.static MouseEvent
SwingUtilities.convertMouseEvent
(Component source, MouseEvent sourceEvent, Component destination) Returns a MouseEvent similar tosourceEvent
except that its x and y members have been converted todestination
's coordinate system.static Point
SwingUtilities.convertPoint
(Component source, int x, int y, Component destination) Convert the point(x,y)
insource
coordinate system todestination
coordinate system.static Point
SwingUtilities.convertPoint
(Component source, Point aPoint, Component destination) Convert aaPoint
insource
coordinate system todestination
coordinate system.static void
SwingUtilities.convertPointFromScreen
(Point p, Component c) Convert a point from a screen coordinates to a component's coordinate systemstatic void
SwingUtilities.convertPointToScreen
(Point p, Component c) Convert a point from a component's coordinate system to screen coordinates.static Rectangle
SwingUtilities.convertRectangle
(Component source, Rectangle aRectangle, Component destination) Convert the rectangleaRectangle
insource
coordinate system todestination
coordinate system.static JDialog
JColorChooser.createDialog
(Component c, String title, boolean modal, JColorChooser chooserPane, ActionListener okListener, ActionListener cancelListener) Creates and returns a new dialog containing the specifiedColorChooser
pane along with "OK", "Cancel", and "Reset" buttons.protected JDialog
JFileChooser.createDialog
(Component parent) Creates and returns a newJDialog
wrappingthis
centered on theparent
in theparent
's frame.JOptionPane.createDialog
(Component parentComponent, String title) Creates and returns a newJDialog
wrappingthis
centered on theparentComponent
in theparentComponent
's frame.JOptionPane.createInternalFrame
(Component parentComponent, String title) Creates and returns an instance ofJInternalFrame
.static RepaintManager
RepaintManager.currentManager
(Component c) Return the RepaintManager for the calling thread given a Component.static Component
SwingUtilities.findFocusOwner
(Component c) Deprecated.As of 1.4, replaced byKeyboardFocusManager.getFocusOwner()
.static Accessible
SwingUtilities.getAccessibleAt
(Component c, Point p) Returns theAccessible
child contained at the local coordinatePoint
, if one exists.static Accessible
SwingUtilities.getAccessibleChild
(Component c, int i) Return the nth Accessible child of the object.static int
SwingUtilities.getAccessibleChildrenCount
(Component c) Returns the number of accessible children in the object.static int
SwingUtilities.getAccessibleIndexInParent
(Component c) Get the index of this object in its accessible parent.static AccessibleStateSet
SwingUtilities.getAccessibleStateSet
(Component c) Get the state of this object.static Container
SwingUtilities.getAncestorNamed
(String name, Component comp) Convenience method for searching abovecomp
in the component hierarchy and returns the first object ofname
it finds.static Container
SwingUtilities.getAncestorOfClass
(Class<?> c, Component comp) Convenience method for searching abovecomp
in the component hierarchy and returns the first object of classc
it finds.DefaultFocusManager.getComponentAfter
(Container aContainer, Component aComponent) Returns the component after.LayoutFocusTraversalPolicy.getComponentAfter
(Container aContainer, Component aComponent) Returns the Component that should receive the focus after aComponent.SortingFocusTraversalPolicy.getComponentAfter
(Container aContainer, Component aComponent) Returns the Component that should receive the focus after aComponent.DefaultFocusManager.getComponentBefore
(Container aContainer, Component aComponent) Returns the component before.LayoutFocusTraversalPolicy.getComponentBefore
(Container aContainer, Component aComponent) Returns the Component that should receive the focus before aComponent.SortingFocusTraversalPolicy.getComponentBefore
(Container aContainer, Component aComponent) Returns the Component that should receive the focus before aComponent.int
JMenuBar.getComponentIndex
(Component c) Returns the index of the specified component.int
JPopupMenu.getComponentIndex
(Component c) Returns the index of the specified component.int
JToolBar.getComponentIndex
(Component c) Returns the index of the specified component.SpringLayout.getConstraint
(String edgeName, Component c) Returns the spring controlling the distance between the specified edge of the component and the top or left edge of its parent.SpringLayout.getConstraints
(Component c) Returns the constraints for the specified component.static Component
SwingUtilities.getDeepestComponentAt
(Component parent, int x, int y) Returns the deepest visible descendent Component ofparent
that contains the locationx
,y
.static JDesktopPane
JOptionPane.getDesktopPaneForComponent
(Component parentComponent) Returns the specified component's desktop pane.static Frame
JOptionPane.getFrameForComponent
(Component parentComponent) Returns the specified component'sFrame
.int
JLayeredPane.getIndexOf
(Component c) Returns the index of the specified Component.int
Returns the layer attribute for the specified Component.static JLayeredPane
JLayeredPane.getLayeredPaneAbove
(Component c) Convenience method that returns the first JLayeredPane which contains the specified component.static Rectangle
SwingUtilities.getLocalBounds
(Component aComponent) Return the rectangle (0,0,bounds.width,bounds.height) for the componentaComponent
RepaintManager.getOffscreenBuffer
(Component c, int proposedWidth, int proposedHeight) Return the offscreen buffer that should be used as a double buffer with the componentc
.Creates aPopup
for the Componentowner
containing the Componentcontents
.protected Popup
PopupFactory.getPopup
(Component owner, Component contents, int x, int y, boolean isHeavyWeightPopup) Creates aPopup
for the Componentowner
containing the Componentcontents
.int
JLayeredPane.getPosition
(Component c) Get the relative position of the component within its layer.static Component
Returns the root component for the current component tree.static JRootPane
SwingUtilities.getRootPane
(Component c) If c is a JRootPane descendant return its JRootPane ancestor.static Container
SwingUtilities.getUnwrappedParent
(Component component) Returns the first ancestor of thecomponent
which is not an instance ofJLayer
.RepaintManager.getVolatileOffscreenBuffer
(Component c, int proposedWidth, int proposedHeight) Return a volatile offscreen buffer that should be used as a double buffer with the specified componentc
.static Window
SwingUtilities.getWindowAncestor
(Component c) Returns the firstWindow
ancestor ofc
, ornull
ifc
is not contained inside aWindow
.static Spring
Returns a spring whose minimum, preferred, maximum and value properties are defined by the heights of the minimumSize, preferredSize, maximumSize and size properties of the supplied component.int
JTabbedPane.indexOfComponent
(Component component) Returns the index of the tab for the specified component.int
JTabbedPane.indexOfTabComponent
(Component tabComponent) Returns the index of the tab for the specified tab component.void
Inserts the specified component into the menu at a given position.void
JTextPane.insertComponent
(Component c) Inserts a component into the document as a replacement for the currently selected content.void
Inserts a new tab for the given component, at the given index, represented by the given title and/or icon, either of which may benull
.boolean
MenuSelectionManager.isComponentPartOfCurrentMenu
(Component c) Return true ifc
is part of the currently used menustatic boolean
SwingUtilities.isDescendingFrom
(Component a, Component b) Returntrue
if a componenta
descends from a componentb
static boolean
JComponent.isLightweightComponent
(Component c) Returns true if this component is lightweight, that is, if it doesn't have a native window system peer.boolean
JMenu.isMenuComponent
(Component c) Returns true if the specified component exists in the submenu hierarchy.void
Forces the specified components to have the same size along the specified axis regardless of their preferred, minimum or maximum sizes.void
Forces the specified components to have the same size regardless of their preferred, minimum or maximum sizes.void
JLayeredPane.moveToBack
(Component c) Moves the component to the bottom of the components in its current layer (position -1).void
JLayeredPane.moveToFront
(Component c) Moves the component to the top of the components in its current layer (position 0).void
CellRendererPane.paintComponent
(Graphics g, Component c, Container p, int x, int y, int w, int h) Calls this.paintComponent(g, c, p, x, y, w, h, false).void
CellRendererPane.paintComponent
(Graphics g, Component c, Container p, int x, int y, int w, int h, boolean shouldValidate) Paint a cell renderer component c on graphics object g.void
CellRendererPane.paintComponent
(Graphics g, Component c, Container p, Rectangle r) Calls this.paintComponent(g, c, p, r.x, r.y, r.width, r.height) wherer
is the inputRectangle
parameter.static void
SwingUtilities.paintComponent
(Graphics g, Component c, Container p, int x, int y, int w, int h) Paints a component to the specifiedGraphics
.static void
SwingUtilities.paintComponent
(Graphics g, Component c, Container p, Rectangle r) Paints a component to the specifiedGraphics
.void
Draw the icon at the specified location.void
Paints the icon.void
LookAndFeel.provideErrorFeedback
(Component component) Invoked when the user attempts an invalid operation, such as pasting into an uneditableJTextField
that has focus.void
SpringLayout.putConstraint
(String e1, Component c1, int pad, String e2, Component c2) Links edgee1
of componentc1
to edgee2
of componentc2
, with a fixed distance between the edges.void
Links edgee1
of componentc1
to edgee2
of componentc2
.void
Deprecated, for removal: This API element is subject to removal in a future version.Removes the specified component from the container.void
Removes the specified component from the container.void
Removes the specified component from the container.void
Removes the specified component from the container.void
Removes the componentc
from this menu.void
Removes the child component,component
from the pane.void
Removes the specifiedComponent
from theJTabbedPane
.void
Removes theViewport
s one lightweight child.void
Removes the specified component from the container.void
BoxLayout.removeLayoutComponent
(Component comp) Not used by this class.void
GroupLayout.removeLayoutComponent
(Component component) Notification that aComponent
has been removed from the parent container.void
JRootPane.RootLayout.removeLayoutComponent
(Component comp) void
JSpinner.DefaultEditor.removeLayoutComponent
(Component child) ThisLayoutManager
method does nothing.void
OverlayLayout.removeLayoutComponent
(Component comp) Removes the specified component from the layout.void
ScrollPaneLayout.removeLayoutComponent
(Component c) Removes the specified component from the layout.void
SpringLayout.removeLayoutComponent
(Component c) Removes the constraints associated with the specified component.void
ViewportLayout.removeLayoutComponent
(Component c) Removes the specified component from the layout.void
Replaces an existing component with a new one.void
JSplitPane.setBottomComponent
(Component comp) Sets the component below, or to the right of the divider.void
JScrollPane.setColumnHeaderView
(Component view) Creates a column-header viewport if necessary, sets its view, and then adds the column-header viewport to the scrollpane.void
JTabbedPane.setComponentAt
(int index, Component component) Sets the component atindex
tocomponent
.void
JDesktopPane.setComponentZOrder
(Component comp, int index) Moves the specified component to the specified z-order index in the container.void
Adds a child that will appear in one of the scroll panes corners, if there's room.void
JApplet.setGlassPane
(Component glassPane) Deprecated, for removal: This API element is subject to removal in a future version.Sets the glassPane property.void
JDialog.setGlassPane
(Component glassPane) Sets theglassPane
property.void
JFrame.setGlassPane
(Component glassPane) Sets theglassPane
property.void
JInternalFrame.setGlassPane
(Component glass) Sets thisJInternalFrame
'sglassPane
property.void
JRootPane.setGlassPane
(Component glass) Sets a specifiedComponent
to be the glass pane for this root pane.void
JWindow.setGlassPane
(Component glassPane) Sets theglassPane
property.void
RootPaneContainer.setGlassPane
(Component glassPane) The glassPane is always the first child of the rootPane and the rootPanes layout manager ensures that it's always as big as the rootPane.void
GroupLayout.setHonorsVisibility
(Component component, Boolean honorsVisibility) Sets whether the component's visibility is considered for sizing and positioning.void
JPopupMenu.setInvoker
(Component invoker) Sets the invoker of this popup menu -- the component in which the popup menu menu is to be displayed.void
JLabel.setLabelFor
(Component c) Set the component this is labelling.void
Sets the layer attribute on the specified component, making it the bottommost component in that layer.void
Sets the layer attribute for the specified component and also sets its position within that layer.void
JSplitPane.setLeftComponent
(Component comp) Sets the component to the left (or above) the divider.void
JComponent.setNextFocusableComponent
(Component aComponent) Deprecated.As of 1.4, replaced byFocusTraversalPolicy
void
JLayeredPane.setPosition
(Component c, int position) Moves the component toposition
within its current layer, where 0 is the topmost position within the layer and -1 is the bottommost position.void
JSplitPane.setRightComponent
(Component comp) Sets the component to the right (or below) the divider.void
JScrollPane.setRowHeaderView
(Component view) Creates a row-header viewport if necessary, sets its view and then adds the row-header viewport to the scrollpane.void
JMenuBar.setSelected
(Component sel) Sets the currently selected component, producing a a change to the selection model.void
JPopupMenu.setSelected
(Component sel) Sets the currently selected component, This will result in a change to the selection model.void
JTabbedPane.setSelectedComponent
(Component c) Sets the selected component for this tabbedpane.void
JTabbedPane.setTabComponentAt
(int index, Component component) Sets the component that is responsible for rendering the title for the specified tab.void
JSplitPane.setTopComponent
(Component comp) Sets the component above, or to the left of the divider.void
Sets theJViewport
's one lightweight child (view
), which can benull
.void
JScrollPane.setViewportView
(Component view) Creates a viewport if necessary and then sets its view.void
Displays the popup menu at the position x,y in the coordinate space of the component invoker.static int
JOptionPane.showConfirmDialog
(Component parentComponent, Object message) Brings up a dialog with the options Yes, No and Cancel; with the title, Select an Option.static int
JOptionPane.showConfirmDialog
(Component parentComponent, Object message, String title, int optionType) Brings up a dialog where the number of choices is determined by theoptionType
parameter.static int
JOptionPane.showConfirmDialog
(Component parentComponent, Object message, String title, int optionType, int messageType) Brings up a dialog where the number of choices is determined by theoptionType
parameter, where themessageType
parameter determines the icon to display.static int
JOptionPane.showConfirmDialog
(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon) Brings up a dialog with a specified icon, where the number of choices is determined by theoptionType
parameter.static Color
JColorChooser.showDialog
(Component component, String title, Color initialColor) Shows a modal color-chooser dialog and blocks until the dialog is hidden.static Color
JColorChooser.showDialog
(Component component, String title, Color initialColor, boolean colorTransparencySelectionEnabled) Shows a modal color-chooser dialog and blocks until the dialog is hidden.int
JFileChooser.showDialog
(Component parent, String approveButtonText) Pops a custom file chooser dialog with a custom approve button.static String
JOptionPane.showInputDialog
(Component parentComponent, Object message) Shows a question-message dialog requesting input from the user parented toparentComponent
.static String
JOptionPane.showInputDialog
(Component parentComponent, Object message, Object initialSelectionValue) Shows a question-message dialog requesting input from the user and parented toparentComponent
.static String
JOptionPane.showInputDialog
(Component parentComponent, Object message, String title, int messageType) Shows a dialog requesting input from the user parented toparentComponent
with the dialog having the titletitle
and message typemessageType
.static Object
JOptionPane.showInputDialog
(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue) Prompts the user for input in a blocking dialog where the initial selection, possible selections, and all other options can be specified.static int
JOptionPane.showInternalConfirmDialog
(Component parentComponent, Object message) Brings up an internal dialog panel with the options Yes, No and Cancel; with the title, Select an Option.static int
JOptionPane.showInternalConfirmDialog
(Component parentComponent, Object message, String title, int optionType) Brings up a internal dialog panel where the number of choices is determined by theoptionType
parameter.static int
JOptionPane.showInternalConfirmDialog
(Component parentComponent, Object message, String title, int optionType, int messageType) Brings up an internal dialog panel where the number of choices is determined by theoptionType
parameter, where themessageType
parameter determines the icon to display.static int
JOptionPane.showInternalConfirmDialog
(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon) Brings up an internal dialog panel with a specified icon, where the number of choices is determined by theoptionType
parameter.static String
JOptionPane.showInternalInputDialog
(Component parentComponent, Object message) Shows an internal question-message dialog requesting input from the user parented toparentComponent
.static String
JOptionPane.showInternalInputDialog
(Component parentComponent, Object message, String title, int messageType) Shows an internal dialog requesting input from the user parented toparentComponent
with the dialog having the titletitle
and message typemessageType
.static Object
JOptionPane.showInternalInputDialog
(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue) Prompts the user for input in a blocking internal dialog where the initial selection, possible selections, and all other options can be specified.static void
JOptionPane.showInternalMessageDialog
(Component parentComponent, Object message) Brings up an internal confirmation dialog panel.static void
JOptionPane.showInternalMessageDialog
(Component parentComponent, Object message, String title, int messageType) Brings up an internal dialog panel that displays a message using a default icon determined by themessageType
parameter.static void
JOptionPane.showInternalMessageDialog
(Component parentComponent, Object message, String title, int messageType, Icon icon) Brings up an internal dialog panel displaying a message, specifying all parameters.static int
JOptionPane.showInternalOptionDialog
(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue) Brings up an internal dialog panel with a specified icon, where the initial choice is determined by theinitialValue
parameter and the number of choices is determined by theoptionType
parameter.static void
JOptionPane.showMessageDialog
(Component parentComponent, Object message) Brings up an information-message dialog titled "Message".static void
JOptionPane.showMessageDialog
(Component parentComponent, Object message, String title, int messageType) Brings up a dialog that displays a message using a default icon determined by themessageType
parameter.static void
JOptionPane.showMessageDialog
(Component parentComponent, Object message, String title, int messageType, Icon icon) Brings up a dialog displaying a message, specifying all parameters.int
JFileChooser.showOpenDialog
(Component parent) Pops up an "Open File" file chooser dialog.static int
JOptionPane.showOptionDialog
(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue) Brings up a dialog with a specified icon, where the initial choice is determined by theinitialValue
parameter and the number of choices is determined by theoptionType
parameter.int
JFileChooser.showSaveDialog
(Component parent) Pops up a "Save File" file chooser dialog.static void
SwingUtilities.updateComponentTreeUI
(Component c) A simple minded look and feel change: ask each node in the tree toupdateUI()
-- that is, to initialize its UI property with the current look and feel.static Spring
Returns a spring whose minimum, preferred, maximum and value properties are defined by the widths of the minimumSize, preferredSize, maximumSize and size properties of the supplied component.static Window
SwingUtilities.windowForComponent
(Component c) Returns the firstWindow
ancestor ofc
, ornull
ifc
is not contained inside aWindow
.Modifier and TypeMethodDescriptionprotected void
SortingFocusTraversalPolicy.setComparator
(Comparator<? super Component> comparator) Sets the Comparator which will be used to sort the Components in a focus traversal cycle.ModifierConstructorDescriptionCreates aConstraints
object with suitablex
,y
,width
andheight
springs for component,c
.JScrollPane
(Component view) Creates aJScrollPane
that displays the contents of the specified component, where both horizontal and vertical scrollbars appear whenever the component's contents are larger than the view.JScrollPane
(Component view, int vsbPolicy, int hsbPolicy) Creates aJScrollPane
that displays the view component in a viewport whose view position can be controlled with a pair of scrollbars.JSplitPane
(int newOrientation, boolean newContinuousLayout, Component newLeftComponent, Component newRightComponent) Creates a newJSplitPane
with the specified orientation and redrawing style, and with the specified components.JSplitPane
(int newOrientation, Component newLeftComponent, Component newRightComponent) Creates a newJSplitPane
with the specified orientation and the specified components.protected
Creates aPopup
for the Componentowner
containing the Componentcontents
.ProgressMonitor
(Component parentComponent, Object message, String note, int min, int max) Constructs a graphic object that shows progress, typically by filling in a rectangular bar as the process nears completion.ProgressMonitorInputStream
(Component parentComponent, Object message, InputStream in) Constructs an object to monitor the progress of an input stream.TransferSupport
(Component component, Transferable transferable) Create aTransferSupport
withisDrop()
false
for the given component andTransferable
.ModifierConstructorDescriptionSortingFocusTraversalPolicy
(Comparator<? super Component> comparator) Constructs a SortingFocusTraversalPolicy with the specified Comparator. -
Uses of Component in javax.swing.border
Modifier and TypeMethodDescriptionint
AbstractBorder.getBaseline
(Component c, int width, int height) Returns the baseline.int
TitledBorder.getBaseline
(Component c, int width, int height) Returns the baseline.AbstractBorder.getBaselineResizeBehavior
(Component c) Returns an enum indicating how the baseline of a component changes as the size changes.TitledBorder.getBaselineResizeBehavior
(Component c) Returns an enum indicating how the baseline of the border changes as the size changes.AbstractBorder.getBorderInsets
(Component c) This default implementation returns a newInsets
object that is initialized by theAbstractBorder.getBorderInsets(Component,Insets)
method.AbstractBorder.getBorderInsets
(Component c, Insets insets) Reinitializes the insets parameter with this Border's current Insets.BevelBorder.getBorderInsets
(Component c, Insets insets) Reinitialize the insets parameter with this Border's current Insets.Border.getBorderInsets
(Component c) Returns the insets of the border.CompoundBorder.getBorderInsets
(Component c, Insets insets) Reinitialize the insets parameter with this Border's current Insets.EmptyBorder.getBorderInsets
(Component c, Insets insets) Reinitialize the insets parameter with this Border's current Insets.EtchedBorder.getBorderInsets
(Component c, Insets insets) Reinitialize the insets parameter with this Border's current Insets.LineBorder.getBorderInsets
(Component c, Insets insets) Reinitialize the insets parameter with this Border's current Insets.MatteBorder.getBorderInsets
(Component c, Insets insets) Reinitialize the insets parameter with this Border's current Insets.SoftBevelBorder.getBorderInsets
(Component c, Insets insets) Reinitialize the insets parameter with this Border's current Insets.StrokeBorder.getBorderInsets
(Component c, Insets insets) Reinitializes theinsets
parameter with this border's current insets.TitledBorder.getBorderInsets
(Component c, Insets insets) Reinitialize the insets parameter with this Border's current Insets.protected Font
Returns default font of the titled border.EtchedBorder.getHighlightColor
(Component c) Returns the highlight color of the etched border when rendered on the specified component.BevelBorder.getHighlightInnerColor
(Component c) Returns the inner highlight color of the bevel border when rendered on the specified component.BevelBorder.getHighlightOuterColor
(Component c) Returns the outer highlight color of the bevel border when rendered on the specified component.AbstractBorder.getInteriorRectangle
(Component c, int x, int y, int width, int height) This convenience method calls the static method.static Rectangle
AbstractBorder.getInteriorRectangle
(Component c, Border b, int x, int y, int width, int height) Returns a rectangle using the arguments minus the insets of the border.TitledBorder.getMinimumSize
(Component c) Returns the minimum dimensions this border requires in order to fully display the border and title.EtchedBorder.getShadowColor
(Component c) Returns the shadow color of the etched border when rendered on the specified component.BevelBorder.getShadowInnerColor
(Component c) Returns the inner shadow color of the bevel border when rendered on the specified component.BevelBorder.getShadowOuterColor
(Component c) Returns the outer shadow color of the bevel border when rendered on the specified component.void
AbstractBorder.paintBorder
(Component c, Graphics g, int x, int y, int width, int height) This default implementation does no painting.void
BevelBorder.paintBorder
(Component c, Graphics g, int x, int y, int width, int height) Paints the border for the specified component with the specified position and size.void
Border.paintBorder
(Component c, Graphics g, int x, int y, int width, int height) Paints the border for the specified component with the specified position and size.void
CompoundBorder.paintBorder
(Component c, Graphics g, int x, int y, int width, int height) Paints the compound border by painting the outside border with the specified position and size and then painting the inside border at the specified position and size offset by the insets of the outside border.void
EmptyBorder.paintBorder
(Component c, Graphics g, int x, int y, int width, int height) Does no drawing by default.void
EtchedBorder.paintBorder
(Component c, Graphics g, int x, int y, int width, int height) Paints the border for the specified component with the specified position and size.void
LineBorder.paintBorder
(Component c, Graphics g, int x, int y, int width, int height) Paints the border for the specified component with the specified position and size.void
MatteBorder.paintBorder
(Component c, Graphics g, int x, int y, int width, int height) Paints the matte border.void
SoftBevelBorder.paintBorder
(Component c, Graphics g, int x, int y, int width, int height) Paints the border for the specified component with the specified position and size.void
StrokeBorder.paintBorder
(Component c, Graphics g, int x, int y, int width, int height) Paints the border for the specified component with the specified position and size.void
TitledBorder.paintBorder
(Component c, Graphics g, int x, int y, int width, int height) Paints the border for the specified component with the specified position and size.protected void
BevelBorder.paintLoweredBevel
(Component c, Graphics g, int x, int y, int width, int height) Paints a lowered bevel for the specified component with the specified position and size.protected void
BevelBorder.paintRaisedBevel
(Component c, Graphics g, int x, int y, int width, int height) Paints a raised bevel for the specified component with the specified position and size. -
Uses of Component in javax.swing.colorchooser
Modifier and TypeClassDescriptionclass
This is the abstract superclass for color choosers. -
Uses of Component in javax.swing.event
ModifierConstructorDescriptionMenuDragMouseEvent
(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, MenuElement[] p, MenuSelectionManager m) Constructs a MenuDragMouseEvent object.MenuDragMouseEvent
(Component source, int id, long when, int modifiers, int x, int y, int xAbs, int yAbs, int clickCount, boolean popupTrigger, MenuElement[] p, MenuSelectionManager m) Constructs a MenuDragMouseEvent object.MenuKeyEvent
(Component source, int id, long when, int modifiers, int keyCode, char keyChar, MenuElement[] p, MenuSelectionManager m) Constructs a MenuKeyEvent object. -
Uses of Component in javax.swing.plaf
Modifier and TypeMethodDescriptionBorderUIResource.getBorderInsets
(Component c) void
BorderUIResource.paintBorder
(Component c, Graphics g, int x, int y, int width, int height) void
-
Uses of Component in javax.swing.plaf.basic
Modifier and TypeClassDescriptionclass
JButton object that draws a scaled Arrow in one of the cardinal directions.class
ComboBox rendererstatic class
A subclass of BasicComboBoxRenderer that implements UIResource.class
This is a basic implementation of theComboPopup
interface.class
The class that manages a basic title barclass
This class should be treated as a "protected" inner class.class
Divider used by BasicSplitPaneUI.protected class
The window which appears during dragging theJToolBar
.Modifier and TypeFieldDescriptionprotected Component[]
BasicSplitPaneUI.BasicHorizontalLayoutManager.components
The components.protected Component
BasicTreeUI.MouseInputHandler.destination
Destination that receives all events.protected Component
BasicTreeUI.editingComponent
When editing, this will be the Component that is doing the actual editing.protected Component
BasicComboBoxUI.editor
The Component that theComboBoxEditor
uses for editing.protected Component
BasicSplitPaneDivider.hiddenDivider
Divider that is used for noncontinuous layout mode.protected Component
BasicOptionPaneUI.initialFocusComponent
Component to receive focus when messaged with selectInitialValue.protected Component
BasicSplitPaneUI.nonContinuousLayoutDivider
Instance for the shadow of the divider when non continuous layout is being used.protected Component
BasicTreeUI.MouseInputHandler.source
Source that events are coming from.BasicMenuUI.ChangeHandler.wasFocused
The component that was focused.Modifier and TypeMethodDescriptionprotected Component
BasicSplitPaneUI.createDefaultNonContinuousLayoutDivider()
Returns the default non continuous layout divider, which is an instance ofCanvas
that fills in the background with dark gray.protected Component
BasicSpinnerUI.createNextButton()
Creates an increment button, i.e. component that replaces the spinner value with the object returned byspinner.getNextValue
.protected Component
BasicSpinnerUI.createPreviousButton()
Creates a decrement button, i.e. component that replaces the spinner value with the object returned byspinner.getPreviousValue
.BasicComboBoxEditor.getEditorComponent()
protected Component
BasicSliderUI.getHighestValueLabel()
Returns the label that corresponds to the lowest slider value in the label table.BasicComboBoxRenderer.getListCellRendererComponent
(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus) protected Component
BasicSliderUI.getLowestValueLabel()
Returns the label that corresponds to the highest slider value in the label table.BasicSplitPaneUI.getNonContinuousLayoutDivider()
Returns the divider to use when theJSplitPane
is configured to not continuously layout.protected Component
BasicTabbedPaneUI.getVisibleComponent()
Returns the visible component.Modifier and TypeMethodDescriptionvoid
BasicComboBoxUI.ComboBoxLayoutManager.addLayoutComponent
(String name, Component comp) void
BasicInternalFrameTitlePane.TitlePaneLayout.addLayoutComponent
(String name, Component c) void
BasicInternalFrameUI.InternalFrameLayout.addLayoutComponent
(String name, Component c) If the layout manager uses a per-component string, adds the componentcomp
to the layout, associating it with the string specified byname
.void
BasicOptionPaneUI.ButtonAreaLayout.addLayoutComponent
(String string, Component comp) void
BasicScrollBarUI.addLayoutComponent
(String name, Component child) void
BasicSplitPaneDivider.DividerLayout.addLayoutComponent
(String string, Component c) void
BasicSplitPaneUI.BasicHorizontalLayoutManager.addLayoutComponent
(Component comp, Object constraints) Adds the specified component to the layout, using the specified constraint object.void
BasicSplitPaneUI.BasicHorizontalLayoutManager.addLayoutComponent
(String place, Component component) Adds the component at place.void
BasicTabbedPaneUI.TabbedPaneLayout.addLayoutComponent
(String name, Component comp) boolean
Returnstrue
if theJToolBar
can dock at the given position.protected void
BasicTreeUI.drawCentered
(Component c, Graphics graphics, Icon icon, int x, int y) Draws theicon
centered at (x,y).BasicBorders.SplitPaneBorder.getBorderInsets
(Component c) protected int
BasicSplitPaneUI.BasicHorizontalLayoutManager.getPreferredSizeOfComponent
(Component c) Returns the width of the passed in Components preferred size.protected Dimension
BasicComboBoxUI.getSizeForComponent
(Component comp) Returns the size a component would have if used as a cell renderer.protected int
BasicSplitPaneUI.BasicHorizontalLayoutManager.getSizeOfComponent
(Component c) Returns the width of the passed in component.protected void
BasicSpinnerUI.installNextButtonListeners
(Component c) Installs the necessary listeners on the next button,c
, to update theJSpinner
in response to a user gesture.protected void
BasicSpinnerUI.installPreviousButtonListeners
(Component c) Installs the necessary listeners on the previous button,c
, to update theJSpinner
in response to a user gesture.void
BasicBorders.SplitPaneBorder.paintBorder
(Component c, Graphics g, int x, int y, int width, int height) protected void
BasicSliderUI.paintHorizontalLabel
(Graphics g, int value, Component label) Called for every label in the label table.protected void
BasicSliderUI.paintVerticalLabel
(Graphics g, int value, Component label) Called for every label in the label table.void
BasicComboBoxUI.ComboBoxLayoutManager.removeLayoutComponent
(Component comp) void
BasicInternalFrameTitlePane.TitlePaneLayout.removeLayoutComponent
(Component c) void
BasicInternalFrameUI.InternalFrameLayout.removeLayoutComponent
(Component c) Removes the specified component from the layout.void
BasicOptionPaneUI.ButtonAreaLayout.removeLayoutComponent
(Component c) void
BasicScrollBarUI.removeLayoutComponent
(Component child) void
BasicSplitPaneDivider.DividerLayout.removeLayoutComponent
(Component c) void
BasicSplitPaneUI.BasicHorizontalLayoutManager.removeLayoutComponent
(Component component) Removes the specified component from our knowledge.void
BasicTabbedPaneUI.TabbedPaneLayout.removeLayoutComponent
(Component comp) protected void
BasicToolBarUI.setBorderToNonRollover
(Component c) Sets the border of the component to have a non-rollover border which was created by theBasicToolBarUI.createNonRolloverBorder()
method.protected void
BasicToolBarUI.setBorderToNormal
(Component c) Sets the border of the component to have a normal border.protected void
BasicToolBarUI.setBorderToRollover
(Component c) Sets the border of the component to have a rollover border which was created by theBasicToolBarUI.createRolloverBorder()
method.protected void
BasicSplitPaneUI.BasicHorizontalLayoutManager.setComponentToSize
(Component c, int size, int location, Insets insets, Dimension containerSize) Sets the width of the componentc
to besize
, placing its x location atlocation
, y to theinsets.top
and height to thecontainerSize.height
less the top and bottom insets.protected void
BasicSplitPaneUI.setNonContinuousLayoutDivider
(Component newDivider) Sets the divider to use when theJSplitPane
is configured to not continuously layout.protected void
BasicSplitPaneUI.setNonContinuousLayoutDivider
(Component newDivider, boolean rememberSizes) Sets the divider to use.protected void
BasicTabbedPaneUI.setVisibleComponent
(Component component) Sets the visible component.ModifierConstructorDescriptionMouseInputHandler
(Component source, Component destination, MouseEvent event) Constructs a new instance ofMouseInputHandler
. -
Uses of Component in javax.swing.plaf.metal
Modifier and TypeClassDescriptionclass
JButton subclass to help out MetalComboBoxUIclass
Deprecated.As of Java 2 platform v1.4.protected class
Deprecated.As of JDK version 9.class
Render different type sizes and styles.class
Class that manages a JLF title barclass
JButton object for Metal scrollbar arrows.Modifier and TypeMethodDescriptionprotected void
PaintsMetalCheckBoxIcon
.void
void
Paints the horizontal bars for thevoid
void
void
void
void
Paints theTreeControlIcon
.void
MetalLookAndFeel.provideErrorFeedback
(Component component) Invoked when the user attempts an invalid operation, such as pasting into an uneditableJTextField
that has focus. -
Uses of Component in javax.swing.plaf.synth
Modifier and TypeMethodDescriptiondefault void
protected void
SynthToolBarUI.setBorderToNonRollover
(Component c) This implementation does nothing, because therollover
property of theJToolBar
class is not used in the Synth Look and Feel.protected void
SynthToolBarUI.setBorderToNormal
(Component c) This implementation does nothing, because therollover
property of theJToolBar
class is not used in the Synth Look and Feel.protected void
SynthToolBarUI.setBorderToRollover
(Component c) This implementation does nothing, because therollover
property of theJToolBar
class is not used in the Synth Look and Feel.static void
SynthLookAndFeel.updateStyles
(Component c) Updates the style associated withc
, and all its children. -
Uses of Component in javax.swing.table
Modifier and TypeClassDescriptionclass
The standard class for rendering (displaying) individual cells in aJTable
.static class
A subclass ofDefaultTableCellRenderer
that implementsUIResource
.class
This is the object which manages the header of theJTable
.Modifier and TypeMethodDescriptionTableCellEditor.getTableCellEditorComponent
(JTable table, Object value, boolean isSelected, int row, int column) Sets an initialvalue
for the editor.DefaultTableCellRenderer.getTableCellRendererComponent
(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) Returns the default table cell renderer.TableCellRenderer.getTableCellRendererComponent
(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) Returns the component used for drawing the cell. -
Uses of Component in javax.swing.text
Modifier and TypeClassDescriptionclass
JTextComponent
is the base class for swing text components.Modifier and TypeMethodDescriptionprotected Component
ComponentView.createComponent()
Create the component that is associated with this view.final Component
ComponentView.getComponent()
Fetch the component associated with the view.static Component
StyleConstants.getComponent
(AttributeSet a) Gets the component setting from the attribute list.Modifier and TypeMethodDescriptionprotected void
PlainView.damageLineRange
(int line0, int line1, Shape a, Component host) Repaint the given line range.static void
StyleConstants.setComponent
(MutableAttributeSet a, Component c) Sets the component attribute. -
Uses of Component in javax.swing.text.html
Modifier and TypeMethodDescriptionprotected Component
FormView.createComponent()
Create the component.protected Component
ObjectView.createComponent()
Create the component. -
Uses of Component in javax.swing.tree
Modifier and TypeClassDescriptionclass
TextField
used when no editor is supplied.class
Container responsible for placing theeditingComponent
.class
Displays an entry in a tree.Modifier and TypeFieldDescriptionprotected Component
DefaultTreeCellEditor.editingComponent
Component used in editing, obtained from theeditingContainer
.Modifier and TypeMethodDescriptionDefaultTreeCellEditor.getTreeCellEditorComponent
(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) Configures the editor.TreeCellEditor.getTreeCellEditorComponent
(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) Sets an initial value for the editor.DefaultTreeCellRenderer.getTreeCellRendererComponent
(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) Configures the renderer based on the passed in components.TreeCellRenderer.getTreeCellRendererComponent
(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) Sets the value of the current tree cell tovalue
.