|
Java™ Platform Standard Ed. 6 |
|||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Component | |
|---|---|
| java.applet | Provides the classes necessary to create an applet and the classes an applet uses to communicate with its applet context. |
| java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images. |
| java.awt.dnd | 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. |
| java.awt.event | Provides interfaces and classes for dealing with different types of events fired by AWT components. |
| java.awt.im | Provides classes and interfaces for the input method framework. |
| java.beans | Contains classes related to developing beans -- components based on the JavaBeansTM architecture. |
| java.beans.beancontext | Provides classes and interfaces relating to bean context. |
| javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. |
| javax.swing.border | Provides classes and interface for drawing specialized borders around a Swing component. |
| javax.swing.colorchooser | Contains classes and interfaces used by the JColorChooser
component. |
| javax.swing.event | Provides for events fired by Swing components. |
| javax.swing.plaf | Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities. |
| javax.swing.plaf.basic | Provides user interface objects built according to the Basic look and feel. |
| javax.swing.plaf.metal | Provides user interface objects built according to the Java look and feel (once codenamed Metal), which is the default look and feel. |
| javax.swing.plaf.synth | Synth is a skinnable look and feel in which all painting is delegated. |
| javax.swing.table | Provides classes and interfaces for dealing with
javax.swing.JTable. |
| javax.swing.text | Provides classes and interfaces that deal with editable and noneditable text components. |
| javax.swing.text.html | Provides the class HTMLEditorKit and supporting classes
for creating HTML text editors. |
| javax.swing.tree | Provides classes and interfaces for dealing with
javax.swing.JTree. |
| Uses of Component in java.applet |
|---|
| Subclasses of Component in java.applet | |
|---|---|
class |
Applet
An applet is a small program that is intended not to be run on its own, but rather to be embedded inside another application. |
| Uses of Component in java.awt |
|---|
| Subclasses of Component in java.awt | |
|---|---|
class |
Button
This class creates a labeled button. |
class |
Canvas
A Canvas 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 |
Checkbox
A check box is a graphical component that can be in either an "on" ( true) or "off" (false) state. |
class |
Choice
The Choice class presents a pop-up menu of choices. |
class |
Container
A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT components. |
class |
Dialog
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 |
FileDialog
The FileDialog class displays a dialog window
from which the user can select a file. |
class |
Frame
A Frame is a top-level window with a title and a border. |
class |
Label
A Label object is a component for placing text in a
container. |
class |
List
The List component presents the user with a
scrolling list of text items. |
class |
Panel
Panel is the simplest container class. |
class |
Scrollbar
The Scrollbar class embodies a scroll bar, a
familiar user-interface object. |
class |
ScrollPane
A container class which implements automatic horizontal and/or vertical scrolling for a single child component. |
class |
TextArea
A TextArea object is a multi-line region
that displays text. |
class |
TextComponent
The TextComponent class is the superclass of
any component that allows the editing of some text. |
class |
TextField
A TextField object is a text component
that allows for the editing of a single line of text. |
class |
Window
A Window object is a top-level window with no borders and no
menubar. |
| Fields in java.awt with type parameters of type Component | |
|---|---|
protected Hashtable<Component,GridBagConstraints> |
GridBagLayout.comptable
This hashtable maintains the association between a component and its gridbag constraints. |
| Methods in java.awt that return Component | |
|---|---|
Component |
Container.add(Component comp)
Appends the specified component to the end of this container. |
Component |
Container.add(Component comp,
int index)
Adds the specified component to this container at the given position. |
Component |
Container.add(String name,
Component comp)
Adds the specified component to this container. |
Component |
Container.findComponentAt(int x,
int y)
Locates the visible child component that contains the specified position. |
Component |
Container.findComponentAt(Point p)
Locates the visible child component that contains the specified point. |
Component |
Container.getComponent(int n)
Gets the nth component in this container. |
Component |
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 |
Container.getComponentAt(int x,
int y)
Locates the component that contains the x,y position. |
Component |
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 |
Container.getComponentAt(Point p)
Gets the component that contains the specified point. |
Component |
Component.getComponentAt(Point p)
Returns the component or subcomponent that contains the specified point. |
Component |
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. |
Component[] |
Container.getComponents()
Gets all the components in this container. |
Component |
ContainerOrderFocusTraversalPolicy.getDefaultComponent(Container aContainer)
Returns the default Component to focus. |
abstract Component |
FocusTraversalPolicy.getDefaultComponent(Container aContainer)
Returns the default Component to focus. |
Component |
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. |
Component |
Window.getFocusOwner()
Returns the child Component of this Window that has focus if this Window is focused; returns null otherwise. |
Component |
KeyboardFocusManager.getFocusOwner()
Returns the focus owner, if the focus owner is in the same context as the calling thread. |
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. |
Component |
FocusTraversalPolicy.getInitialComponent(Window window)
Returns the Component that should receive the focus when a Window is made visible for the first time. |
Component |
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. |
Component |
BorderLayout.getLayoutComponent(Container target,
Object constraints)
Returns the component that corresponds to the given constraint location based on the target Container's component orientation. |
Component |
BorderLayout.getLayoutComponent(Object constraints)
Gets the component that was added using the given constraint |
Component |
Window.getMostRecentFocusOwner()
Returns the child Component of this Window that will receive the focus when this Window is focused. |
Component |
KeyboardFocusManager.getPermanentFocusOwner()
Returns the permanent focus owner, if the permanent focus owner is in the same context as the calling thread. |
Component |
Container.locate(int x,
int y)
Deprecated. As of JDK version 1.1, replaced by getComponentAt(int, int). |
Component |
Component.locate(int x,
int y)
Deprecated. As of JDK version 1.1, replaced by getComponentAt(int, int). |
| Methods in java.awt with parameters of type Component | ||
|---|---|---|
protected boolean |
DefaultFocusTraversalPolicy.accept(Component aComponent)
Determines whether a Component is an acceptable choice as the new focus owner. |
|
protected boolean |
ContainerOrderFocusTraversalPolicy.accept(Component aComponent)
Determines whether a Component is an acceptable choice as the new focus owner. |
|
Component |
Container.add(Component comp)
Appends the specified component to the end of this container. |
|
Component |
Container.add(Component comp,
int index)
Adds the specified component to this container at the given position. |
|
void |
Container.add(Component comp,
Object constraints)
Adds the specified component to the end of this container. |
|
void |
Container.add(Component comp,
Object constraints,
int index)
Adds the specified component to this container with the specified constraints at the specified index. |
|
Component |
Container.add(String name,
Component comp)
Adds the specified component to this container. |
|
protected void |
Container.addImpl(Component comp,
Object constraints,
int index)
Adds the specified component to this container at the specified index. |
|
protected void |
ScrollPane.addImpl(Component comp,
Object constraints,
int index)
Adds the specified component to this scroll pane container. |
|
void |
GridBagLayout.addLayoutComponent(Component comp,
Object constraints)
Adds the specified component to the layout, using the specified constraints object. |
|
void |
CardLayout.addLayoutComponent(Component comp,
Object constraints)
Adds the specified component to this card layout's internal table of names. |
|
void |
LayoutManager2.addLayoutComponent(Component comp,
Object constraints)
Adds the specified component to the layout, using the specified constraint object. |
|
void |
BorderLayout.addLayoutComponent(Component comp,
Object constraints)
Adds the specified component to the layout, using the specified constraint object. |
|
void |
GridLayout.addLayoutComponent(String name,
Component comp)
Adds the specified component with the specified name to the layout. |
|
void |
GridBagLayout.addLayoutComponent(String name,
Component comp)
Has no effect, since this layout manager does not use a per-component string. |
|
void |
FlowLayout.addLayoutComponent(String name,
Component comp)
Adds the specified component to the layout. |
|
void |
CardLayout.addLayoutComponent(String name,
Component comp)
Deprecated. replaced by addLayoutComponent(Component, Object). |
|
void |
BorderLayout.addLayoutComponent(String name,
Component comp)
Deprecated. replaced by addLayoutComponent(Component, Object). |
|
void |
LayoutManager.addLayoutComponent(String name,
Component comp)
If the layout manager uses a per-component string, adds the component comp to the layout,
associating it
with the string specified by name. |
|
protected java.awt.peer.LightweightPeer |
Toolkit.createComponent(Component target)
Creates a peer for a component or container. |
|
|
Toolkit.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 to enqueueKeyEvents 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 to enqueueKeyEvents 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. |
|
Component |
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 |
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. |
|
GridBagConstraints |
GridBagLayout.getConstraints(Component comp)
Gets the constraints for the specified component. |
|
Object |
BorderLayout.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. |
|
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 |
Container.remove(Component comp)
Removes the specified component from this container. |
|
void |
GridLayout.removeLayoutComponent(Component comp)
Removes the specified component from the layout. |
|
void |
GridBagLayout.removeLayoutComponent(Component comp)
Removes the specified component from this layout. |
|
void |
FlowLayout.removeLayoutComponent(Component comp)
Removes the specified component from the layout. |
|
void |
CardLayout.removeLayoutComponent(Component comp)
Removes the specified component from the layout. |
|
void |
BorderLayout.removeLayoutComponent(Component comp)
Removes the specified component from this border 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. |
|
void |
PopupMenu.show(Component origin,
int x,
int y)
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. |
|
| Constructors in java.awt with parameters of type Component | |
|---|---|
MediaTracker(Component comp)
Creates a media tracker to track images for a given component. |
|
| Uses of Component in java.awt.dnd |
|---|
| Fields in java.awt.dnd declared as Component | |
|---|---|
protected Component |
DragGestureRecognizer.component
The Component
associated with this DragGestureRecognizer. |
| Methods in java.awt.dnd that return Component | |
|---|---|
Component |
DropTargetContext.getComponent()
This method returns the Component associated with
this DropTargetContext. |
Component |
DragSourceContext.getComponent()
Returns the Component associated with this
DragSourceContext. |
Component |
DropTarget.getComponent()
Gets the Component associated
with this DropTarget. |
Component |
DragGestureRecognizer.getComponent()
This method returns the Component
that is to be "observed" by the
DragGestureRecognizer
for drag initiating gestures. |
Component |
DragGestureEvent.getComponent()
Returns the Component associated
with this DragGestureEvent. |
| Methods in java.awt.dnd with parameters of type Component | ||
|---|---|---|
DragGestureRecognizer |
DragSource.createDefaultDragGestureRecognizer(Component c,
int actions,
DragGestureListener dgl)
Creates a new DragGestureRecognizer
that implements the default
abstract subclass of DragGestureRecognizer
for this DragSource,
and sets the specified Component
and DragGestureListener on the
newly created object. |
|
|
DragSource.createDragGestureRecognizer(Class<T> recognizerAbstractClass,
Component c,
int actions,
DragGestureListener dgl)
Creates a new DragGestureRecognizer
that implements the specified
abstract subclass of
DragGestureRecognizer, and
sets the specified Component
and DragGestureListener on
the newly created object. |
|
protected DropTarget.DropTargetAutoScroller |
DropTarget.createDropTargetAutoScroller(Component c,
Point p)
create an embedded autoscroller |
|
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);
or droptarget.setComponent(component); |
|
void |
DragGestureRecognizer.setComponent(Component c)
set the Component that the DragGestureRecognizer is associated with registerListeners() and unregisterListeners() are called as a side effect as appropriate. |
|
| Constructors in java.awt.dnd with parameters of type Component | |
|---|---|
DragGestureRecognizer(DragSource ds,
Component c)
Construct a new DragGestureRecognizer
given the DragSource to be used
in this Drag and Drop operation, and
the Component this
DragGestureRecognizer
should "observe" for drag initiating gestures. |
|
DragGestureRecognizer(DragSource ds,
Component c,
int sa)
Construct a new DragGestureRecognizer
given the DragSource to be used in this
Drag and Drop
operation, the Component this
DragGestureRecognizer should "observe"
for drag initiating gestures, and the action(s)
supported for this Drag and Drop operation. |
|
DragGestureRecognizer(DragSource ds,
Component c,
int sa,
DragGestureListener dgl)
Construct a new DragGestureRecognizer
given the DragSource to be used
in this Drag and Drop operation, the Component
this DragGestureRecognizer should "observe"
for drag initiating gestures, the action(s) supported
for this Drag and Drop operation, and the
DragGestureListener to notify
once a drag initiating gesture has been detected. |
|
DropTarget.DropTargetAutoScroller(Component c,
Point p)
construct a DropTargetAutoScroller |
|
DropTarget(Component c,
DropTargetListener dtl)
Creates a DropTarget given the Component
to associate itself with, and the DropTargetListener
to handle event processing. |
|
DropTarget(Component c,
int ops,
DropTargetListener dtl)
Creates a DropTarget given the Component
to associate itself with, an int representing
the default acceptable action(s) to support, and a
DropTargetListener to handle event processing. |
|
DropTarget(Component c,
int ops,
DropTargetListener dtl,
boolean act)
Creates a DropTarget given the Component
to associate itself with, an int representing
the default acceptable action(s)
to support, a DropTargetListener
to handle event processing, and a boolean indicating
if the DropTarget is currently accepting drops. |
|
DropTarget(Component c,
int ops,
DropTargetListener dtl,
boolean act,
FlavorMap fm)
Creates a new DropTarget given the Component
to associate itself with, an int representing
the default acceptable action(s) to
support, a DropTargetListener
to handle event processing, a boolean indicating
if the DropTarget is currently accepting drops, and
a FlavorMap to use (or null for the default FlavorMap). |
|
MouseDragGestureRecognizer(DragSource ds,
Component c)
Construct a new MouseDragGestureRecognizer
given the DragSource for the
Component c, and the
Component to observe. |
|
MouseDragGestureRecognizer(DragSource ds,
Component c,
int act)
Construct a new MouseDragGestureRecognizer
given the DragSource for
the Component c,
the Component to observe, and the action(s)
permitted for this drag operation. |
|
MouseDragGestureRecognizer(DragSource ds,
Component c,
int act,
DragGestureListener dgl)
Construct a new MouseDragGestureRecognizer
given the DragSource for the
Component c, the Component
to observe, the action(s)
permitted for this drag operation, and
the DragGestureListener to
notify when a drag gesture is detected. |
|
| Uses of Component in java.awt.event |
|---|
| Methods in java.awt.event that return Component | |
|---|---|
Component |
HierarchyEvent.getChanged()
Returns the Component at the top of the hierarchy which was changed. |
Component |
ContainerEvent.getChild()
Returns the component that was affected by the event. |
Component |
HierarchyEvent.getComponent()
Returns the originator of the event. |
Component |
ComponentEvent.getComponent()
Returns the originator of the event. |
Component |
FocusEvent.getOppositeComponent()
Returns the other Component involved in this focus change. |
| Constructors in java.awt.event with parameters of type Component | |
|---|---|
ComponentEvent(Component source,
int id)
Constructs a ComponentEvent object. |
|
ContainerEvent(Component source,
int id,
Component child)
Constructs a ContainerEvent object. |
|
FocusEvent(Component source,
int id)
Constructs a FocusEvent object and identifies it
as a permanent change in focus. |
|
FocusEvent(Component source,
int id,
boolean temporary)
Constructs a FocusEvent object and identifies
whether or not the change is temporary. |
|
FocusEvent(Component source,
int id,
boolean temporary,
Component opposite)
Constructs a FocusEvent object with the
specified temporary state and opposite Component. |
|
HierarchyEvent(Component source,
int id,
Component changed,
Container changedParent)
Constructs an HierarchyEvent object to identify a
change in the Component hierarchy. |
|
HierarchyEvent(Component source,
int id,
Component changed,
Container changedParent,
long changeFlags)
Constructs an HierarchyEvent object to identify
a change in the Component hierarchy. |
|
InputMethodEvent(Component source,
int id,
AttributedCharacterIterator text,
int committedCharacterCount,
TextHitInfo caret,
TextHitInfo visiblePosition)
Constructs an InputMethodEvent with the specified
source component, type, text, caret, and visiblePosition. |
|
InputMethodEvent(Component source,
int id,
long when,
AttributedCharacterIterator text,
int committedCharacterCount,
TextHitInfo caret,
TextHitInfo visiblePosition)
Constructs an InputMethodEvent with the specified
source component, type, time, text, caret, and visiblePosition. |
|
InputMethodEvent(Component source,
int id,
TextHitInfo caret,
TextHitInfo visiblePosition)
Constructs an InputMethodEvent with the
specified source component, type, caret, and visiblePosition. |
|
KeyEvent(Component source,
int id,
long when,
int modifiers,
int keyCode)
Deprecated. as of JDK1.1 |
|
KeyEvent(Component source,
int id,
long when,
int modifiers,
int keyCode,
char keyChar)
Constructs a KeyEvent object. |
|
KeyEvent(Component source,
int id,
long when,
int modifiers,
int keyCode,
char keyChar,
int keyLocation)
|
|
MouseEvent(Component source,
int id,
long when,
int modifiers,
int x,
int y,
int clickCount,
boolean popupTrigger)
Constructs a MouseEvent object with the
specified source component,
type, modifiers, coordinates, and click count. |
|
MouseEvent(Component source,
int id,
long when,
int modifiers,
int x,
int y,
int clickCount,
boolean popupTrigger,
int button)
Constructs a MouseEvent object with the
specified source component,
type, modifiers, coordinates, and click count. |
|
MouseEvent(Component source,
int id,
long when,
int modifiers,
int x,
int y,
int xAbs,
int yAbs,
int clickCount,
boolean popupTrigger,
int button)
Constructs a MouseEvent object with the
specified source component,
type, modifiers, coordinates, absolute coordinates, and click count. |
|
MouseWheelEvent(Component source,
int id,
long when,
int modifiers,
int x,
int y,
int clickCount,
boolean popupTrigger,
int scrollType,
int scrollAmount,
int wheelRotation)
Constructs a MouseWheelEvent 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 a MouseWheelEvent 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 a PaintEvent object with the specified
source component and type. |
|
| Uses of Component in java.awt.im |
|---|
| Methods in java.awt.im with parameters of type Component | |
|---|---|
void |
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 |
|---|
| Methods in java.beans that return Component | |
|---|---|
Component |
PropertyEditorSupport.getCustomEditor()
A PropertyEditor may chose to make available a full custom Component that edits its property value. |
Component |
PropertyEditor.getCustomEditor()
A PropertyEditor may choose to make available a full custom Component that edits its property value. |
| Uses of Component in java.beans.beancontext |
|---|
| Methods in java.beans.beancontext that return Component | |
|---|---|
Component |
BeanContextChildComponentProxy.getComponent()
Gets the java.awt.Component associated with
this BeanContextChild. |
| Uses of Component in javax.swing |
|---|
| Subclasses of Component in javax.swing | |
|---|---|
class |
AbstractButton
Defines common behaviors for buttons and menu items. |
class |
Box
A lightweight container that uses a BoxLayout object as its layout manager. |
static class |
Box.Filler
An implementation of a lightweight component that participates in layout but has no view. |
class |
CellRendererPane
This class is inserted in between cell renderers and the components that use them. |
class |
DefaultListCellRenderer
Renders an item in a list. |
static class |
DefaultListCellRenderer.UIResource
A subclass of DefaultListCellRenderer that implements UIResource. |
class |
JApplet
An extended version of java.applet.Applet that adds support for
the JFC/Swing component architecture. |
class |
JButton
An implementation of a "push" button. |
class |
JCheckBox
An implementation of a check box -- an item that can be selected or deselected, and which displays its state to the user. |
class |
JCheckBoxMenuItem
A menu item that can be selected or deselected. |
class |
JColorChooser
JColorChooser provides a pane of controls designed to allow
a user to manipulate and select a color. |
class |
JComboBox
A component that combines a button or editable field and a drop-down list. |
class |
JComponent
The base class for all Swing components except top-level containers. |
class |
JDesktopPane
A container used to create a multiple-document interface or a virtual desktop. |
class |
JDialog
The main class for creating a dialog window. |
class |
JEditorPane
A text component to edit various kinds of content. |
class |
JFileChooser
JFileChooser provides a simple mechanism for the user to
choose a file. |
class |
JFormattedTextField
JFormattedTextField extends JTextField adding
support for formatting arbitrary values, as well as retrieving a particular
object once the user has edited the text. |
class |
JFrame
An extended version of java.awt.Frame that adds support for
the JFC/Swing component architecture. |
class |
JInternalFrame
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 |
JInternalFrame.JDesktopIcon
This component represents an iconified version of a JInternalFrame. |
class |
JLabel
A display area for a short text string or an image, or both. |
class |
JLayeredPane
JLayeredPane adds depth to a JFC/Swing container,
allowing components to overlap each other when needed. |
class |
JList
A component that displays a list of objects and allows the user to select one or more items. |
class |
JMenu
An implementation of a menu -- a popup window containing JMenuItems that
is displayed when the user selects an item on the JMenuBar. |
class |
JMenuBar
An implementation of a menu bar. |
class |
JMenuItem
An implementation of an item in a menu. |
class |
JOptionPane
JOptionPane makes it easy to pop up a standard dialog box that
prompts users for a value or informs them of something. |
class |
JPanel
JPanel is a generic lightweight container. |