Component Members

Component Members

Class Overview | This Package | All Packages

Fields
Name Description
BOTTOM_ALIGNMENT Ease-of-use constant for getAlignmentY.
CENTER_ALIGNMENT Ease-of-use constant for getAlignmentY and getAlignmentX().
LEFT_ALIGNMENT Ease-of-use constant for getAlignmentX.
RIGHT_ALIGNMENT Ease-of-use constant for getAlignmentX.
TOP_ALIGNMENT Ease-of-use constant for getAlignmentY.

Constructors
Name Description
Component() Constructs a new component.

Methods
Name Description
action(Event, Object) Deprecated.
add(PopupMenu) Adds the specified popup menu to the component.
addComponentListener(ComponentListener) Adds the specified component listener to receive component events from this component.
addFocusListener(FocusListener) Adds the specified focus listener to receive focus events from this component.
addKeyListener(KeyListener) Adds the specified key listener to receive key events from this component.
addMouseListener(MouseListener) Adds the specified mouse listener to receive mouse events from this component.
addMouseMotionListener(MouseMotionListener) Adds the specified mouse motion listener to receive mouse motion events from this component.
addNotify() Notifies this component that it has been added to a container and if a peer is required, it should be created.
bounds() Deprecated.
checkImage(Image, ImageObserver) Returns the status of the construction of a screen representation of the specified image.
checkImage(Image, int, int, ImageObserver) Returns the status of the construction of a screen representation of the specified image.
contains(int, int) Checks whether this component "contains" the specified point, where x and y are defined to be relative to the coordinate system of this component.
contains(Point) Checks whether this component "contains" the specified point, where the point's x and y coordinates are defined to be relative to the coordinate system of this component.
createImage(ImageProducer) Creates an image from the specified image producer.
createImage(int, int) Creates an off-screen drawable image to be used for double buffering.
deliverEvent(Event) Deprecated.
disable() Deprecated.
disableEvents(long) Disables the events defined by the specified event mask parameter from being delivered to this component.
dispatchEvent(AWTEvent) Dispatches an event to this component or one of its sub components.
doLayout() Prompts the layout manager to lay out this component.
enable() Deprecated.
enable(boolean) Deprecated.
enableEvents(long) Enables the events defined by the specified event mask parameter to be delivered to this component.
getAlignmentX() Returns the alignment along the x axis.
getAlignmentY() Returns the alignment along the y axis.
getBackground() Gets the background color of this component.
getBounds() Gets the bounds of this component in the form of a Rectangle object.
getColorModel() Gets the instance of ColorModel used to display the component on the output device.
getComponentAt(int, int) Determines if this component or one of its immediate subcomponents contains the (xy) location, and if so, returns the containing component.
getComponentAt(Point) Returns the component or subcomponent that contains the specified point.
getCursor() Gets the cursor set on this component.
getFont() Gets the font of this component.
getFontMetrics(Font) Gets the font metrics for the specified font.
getForeground() Gets the foreground color of this component.
getGraphics() Creates a graphics context for this component.
getLocale() Gets the locale of this component.
getLocation() Gets the location of this component in the form of a point specifying the component's top-left corner.
getLocationOnScreen() Gets the location of this component in the form of a point specifying the component's top-left corner in the screen's coordinate space.
getMaximumSize() Gets the maximum size of this component.
getMinimumSize() Gets the mininimum size of this component.
getName() Gets the name of the component.
getParent() Gets the parent of this component.
getPeer() Deprecated.
getPreferredSize() Gets the preferred size of this component.
getSize() Returns the size of this component in the form of a Dimension object.
getToolkit() Gets the toolkit of this component.
getTreeLock() Gets this component's locking object (the object that owns the thread sychronization monitor) for AWT component-tree and layout operations.
gotFocus(Event, Object) Deprecated.
handleEvent(Event) Deprecated.
hide() Deprecated.
imageUpdate(Image, int, int, int, int, int) Repaints the component when the image has changed.
inside(int, int) Deprecated.
invalidate() Invalidates this component.
isEnabled() Determines whether this component is enabled.
isFocusTraversable() Returns the value of a flag that indicates whether this component can be traversed using Tab or Shift-Tab keyboard focus traversal.
isShowing() Determines whether this component is showing on screen.
isValid() Determines whether this component is valid.
isVisible() Determines whether this component is visible.
keyDown(Event, int) Deprecated.
keyUp(Event, int) Deprecated.
layout() Deprecated.
list() Prints a listing of this component to the standard system output stream System.out.
list(PrintStream) Prints a listing of this component to the specified output stream.
list(PrintStream, int) Prints out a list, starting at the specified indention, to the specified print stream.
list(PrintWriter) Prints a listing to the specified print writer.
list(PrintWriter, int) Prints out a list, starting at the specified indention, to the specified print writer.
locate(int, int) Deprecated.
location() Deprecated.
lostFocus(Event, Object) Deprecated.
minimumSize() Deprecated.
mouseDown(Event, int, int) Deprecated.
mouseDrag(Event, int, int) Deprecated.
mouseEnter(Event, int, int) Deprecated.
mouseExit(Event, int, int) Deprecated.
mouseMove(Event, int, int) Deprecated.
mouseUp(Event, int, int) Deprecated.
move(int, int) Deprecated.
nextFocus() Deprecated.
paint(Graphics) Paints this component.
paintAll(Graphics) Paints this component and all of its subcomponents.
paramString() Returns the parameter string representing the state of this component.
postEvent(Event) Deprecated.
preferredSize() Deprecated.
prepareImage(Image, ImageObserver) Prepares an image for rendering on this component.
prepareImage(Image, int, int, ImageObserver) Prepares an image for rendering on this component at the specified width and height.
print(Graphics) Prints this component.
printAll(Graphics) Prints this component and all of its subcomponents.
processComponentEvent(ComponentEvent) Processes component events occurring on this component by dispatching them to any registered ComponentListener objects.
processEvent(AWTEvent) Processes events occurring on this component.
processFocusEvent(FocusEvent) Processes focus events occurring on this component by dispatching them to any registered FocusListener objects.
processKeyEvent(KeyEvent) Processes key events occurring on this component by dispatching them to any registered KeyListener objects.
processMouseEvent(MouseEvent) Processes mouse events occurring on this component by dispatching them to any registered MouseListener objects.
processMouseMotionEvent(MouseEvent) Processes mouse motion events occurring on this component by dispatching them to any registered MouseMotionListener objects.
remove(MenuComponent) Removes the specified popup menu from the component.
removeComponentListener(ComponentListener) Removes the specified component listener so that it no longer receives component events from this component.
removeFocusListener(FocusListener) Removes the specified focus listener so that it no longer receives focus events from this component.
removeKeyListener(KeyListener) Removes the specified key listener so that it no longer receives key events from this component.
removeMouseListener(MouseListener) Removes the specified mouse listener so that it no longer receives mouse events from this component.
removeMouseMotionListener(MouseMotionListener) Removes the specified mouse motion listener so that it no longer receives mouse motion events from this component.
removeNotify() Notifies this component that it has been removed from its container and if a peers exists, it destroys it.
repaint() Repaints this component.
repaint(int, int, int, int) Repaints the specified rectangle of this component.
repaint(long) Repaints the component.
repaint(long, int, int, int, int) Repaints the specified rectangle of this component within tm milliseconds.
requestFocus() Requests that this component get the input focus.
reshape(int, int, int, int) Deprecated.
resize(Dimension) Deprecated.
resize(int, int) Deprecated.
setBackground(Color) Sets the background color of this component.
setBounds(int, int, int, int) Moves and resizes this component.
setBounds(Rectangle) Moves and resizes this component to conform to the new bounding rectangle r.
setCursor(Cursor) Set the cursor image to a predefined cursor.
setEnabled(boolean) Enables or disables this component, depending on the value of the parameter b.
setFont(Font) Sets the font of this component.
setForeground(Color) Sets the foreground color of this component.
setLocale(Locale) Sets the locale of this component.
setLocation(int, int) Moves this component to a new location.
setLocation(Point) Moves this component to a new location.
setName(String) Sets the name of the component to the specified string.
setSize(Dimension) Resizes this component so that it has width d.width and height d.height.
setSize(int, int) Resizes this component so that it has width width and height.
setVisible(boolean) Shows or hides this component depending on the value of parameter b.
show() Deprecated.
show(boolean) Deprecated.
size() Deprecated.
toString() Returns a string representation of this component and its values.
transferFocus() Transfers the focus to the next component.
update(Graphics) Updates this component.
validate() Ensures that this component has a valid layout.