Component (Java Platform SE 7 ) (original) (raw)

Modifier and Type

Method and Description

boolean

**[action](../../java/awt/Component.html#action%28java.awt.Event,%20java.lang.Object%29)**([Event](../../java/awt/Event.html "class in java.awt") evt,[Object](../../java/lang/Object.html "class in java.lang") what)

Deprecated.

As of JDK version 1.1, should register this component as ActionListener on component which fires action events.

void

**[add](../../java/awt/Component.html#add%28java.awt.PopupMenu%29)**([PopupMenu](../../java/awt/PopupMenu.html "class in java.awt") popup)

Adds the specified popup menu to the component.

void

**[addComponentListener](../../java/awt/Component.html#addComponentListener%28java.awt.event.ComponentListener%29)**([ComponentListener](../../java/awt/event/ComponentListener.html "interface in java.awt.event") l)

Adds the specified component listener to receive component events from this component.

void

**[addFocusListener](../../java/awt/Component.html#addFocusListener%28java.awt.event.FocusListener%29)**([FocusListener](../../java/awt/event/FocusListener.html "interface in java.awt.event") l)

Adds the specified focus listener to receive focus events from this component when this component gains input focus.

void

**[addHierarchyBoundsListener](../../java/awt/Component.html#addHierarchyBoundsListener%28java.awt.event.HierarchyBoundsListener%29)**([HierarchyBoundsListener](../../java/awt/event/HierarchyBoundsListener.html "interface in java.awt.event") l)

Adds the specified hierarchy bounds listener to receive hierarchy bounds events from this component when the hierarchy to which this container belongs changes.

void

**[addHierarchyListener](../../java/awt/Component.html#addHierarchyListener%28java.awt.event.HierarchyListener%29)**([HierarchyListener](../../java/awt/event/HierarchyListener.html "interface in java.awt.event") l)

Adds the specified hierarchy listener to receive hierarchy changed events from this component when the hierarchy to which this container belongs changes.

void

**[addInputMethodListener](../../java/awt/Component.html#addInputMethodListener%28java.awt.event.InputMethodListener%29)**([InputMethodListener](../../java/awt/event/InputMethodListener.html "interface in java.awt.event") l)

Adds the specified input method listener to receive input method events from this component.

void

**[addKeyListener](../../java/awt/Component.html#addKeyListener%28java.awt.event.KeyListener%29)**([KeyListener](../../java/awt/event/KeyListener.html "interface in java.awt.event") l)

Adds the specified key listener to receive key events from this component.

void

**[addMouseListener](../../java/awt/Component.html#addMouseListener%28java.awt.event.MouseListener%29)**([MouseListener](../../java/awt/event/MouseListener.html "interface in java.awt.event") l)

Adds the specified mouse listener to receive mouse events from this component.

void

**[addMouseMotionListener](../../java/awt/Component.html#addMouseMotionListener%28java.awt.event.MouseMotionListener%29)**([MouseMotionListener](../../java/awt/event/MouseMotionListener.html "interface in java.awt.event") l)

Adds the specified mouse motion listener to receive mouse motion events from this component.

void

**[addMouseWheelListener](../../java/awt/Component.html#addMouseWheelListener%28java.awt.event.MouseWheelListener%29)**([MouseWheelListener](../../java/awt/event/MouseWheelListener.html "interface in java.awt.event") l)

Adds the specified mouse wheel listener to receive mouse wheel events from this component.

void

**[addNotify](../../java/awt/Component.html#addNotify%28%29)**()

Makes this Component displayable by connecting it to a native screen resource.

void

**[addPropertyChangeListener](../../java/awt/Component.html#addPropertyChangeListener%28java.beans.PropertyChangeListener%29)**([PropertyChangeListener](../../java/beans/PropertyChangeListener.html "interface in java.beans") listener)

Adds a PropertyChangeListener to the listener list.

void

**[addPropertyChangeListener](../../java/awt/Component.html#addPropertyChangeListener%28java.lang.String,%20java.beans.PropertyChangeListener%29)**([String](../../java/lang/String.html "class in java.lang") propertyName,[PropertyChangeListener](../../java/beans/PropertyChangeListener.html "interface in java.beans") listener)

Adds a PropertyChangeListener to the listener list for a specific property.

void

**[applyComponentOrientation](../../java/awt/Component.html#applyComponentOrientation%28java.awt.ComponentOrientation%29)**([ComponentOrientation](../../java/awt/ComponentOrientation.html "class in java.awt") orientation)

Sets the ComponentOrientation property of this component and all components contained within it.

boolean

**[areFocusTraversalKeysSet](../../java/awt/Component.html#areFocusTraversalKeysSet%28int%29)**(int id)

Returns whether the Set of focus traversal keys for the given focus traversal operation has been explicitly defined for this Component.

[Rectangle](../../java/awt/Rectangle.html "class in java.awt")

**[bounds](../../java/awt/Component.html#bounds%28%29)**()

Deprecated.

As of JDK version 1.1, replaced by getBounds().

int

**[checkImage](../../java/awt/Component.html#checkImage%28java.awt.Image,%20java.awt.image.ImageObserver%29)**([Image](../../java/awt/Image.html "class in java.awt") image,[ImageObserver](../../java/awt/image/ImageObserver.html "interface in java.awt.image") observer)

Returns the status of the construction of a screen representation of the specified image.

int

**[checkImage](../../java/awt/Component.html#checkImage%28java.awt.Image,%20int,%20int,%20java.awt.image.ImageObserver%29)**([Image](../../java/awt/Image.html "class in java.awt") image, int width, int height,[ImageObserver](../../java/awt/image/ImageObserver.html "interface in java.awt.image") observer)

Returns the status of the construction of a screen representation of the specified image.

protected [AWTEvent](../../java/awt/AWTEvent.html "class in java.awt")

**[coalesceEvents](../../java/awt/Component.html#coalesceEvents%28java.awt.AWTEvent,%20java.awt.AWTEvent%29)**([AWTEvent](../../java/awt/AWTEvent.html "class in java.awt") existingEvent,[AWTEvent](../../java/awt/AWTEvent.html "class in java.awt") newEvent)

Potentially coalesce an event being posted with an existing event.

boolean

**[contains](../../java/awt/Component.html#contains%28int,%20int%29)**(int x, int y)

Checks whether this component "contains" the specified point, where x and y are defined to be relative to the coordinate system of this component.

boolean

**[contains](../../java/awt/Component.html#contains%28java.awt.Point%29)**([Point](../../java/awt/Point.html "class in java.awt") p)

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.

[Image](../../java/awt/Image.html "class in java.awt")

**[createImage](../../java/awt/Component.html#createImage%28java.awt.image.ImageProducer%29)**([ImageProducer](../../java/awt/image/ImageProducer.html "interface in java.awt.image") producer)

Creates an image from the specified image producer.

[Image](../../java/awt/Image.html "class in java.awt")

**[createImage](../../java/awt/Component.html#createImage%28int,%20int%29)**(int width, int height)

Creates an off-screen drawable image to be used for double buffering.

[VolatileImage](../../java/awt/image/VolatileImage.html "class in java.awt.image")

**[createVolatileImage](../../java/awt/Component.html#createVolatileImage%28int,%20int%29)**(int width, int height)

Creates a volatile off-screen drawable image to be used for double buffering.

[VolatileImage](../../java/awt/image/VolatileImage.html "class in java.awt.image")

**[createVolatileImage](../../java/awt/Component.html#createVolatileImage%28int,%20int,%20java.awt.ImageCapabilities%29)**(int width, int height,[ImageCapabilities](../../java/awt/ImageCapabilities.html "class in java.awt") caps)

Creates a volatile off-screen drawable image, with the given capabilities.

void

**[deliverEvent](../../java/awt/Component.html#deliverEvent%28java.awt.Event%29)**([Event](../../java/awt/Event.html "class in java.awt") e)

Deprecated.

As of JDK version 1.1, replaced by dispatchEvent(AWTEvent e).

void

**[disable](../../java/awt/Component.html#disable%28%29)**()

Deprecated.

As of JDK version 1.1, replaced by setEnabled(boolean).

protected void

**[disableEvents](../../java/awt/Component.html#disableEvents%28long%29)**(long eventsToDisable)

Disables the events defined by the specified event mask parameter from being delivered to this component.

void

**[dispatchEvent](../../java/awt/Component.html#dispatchEvent%28java.awt.AWTEvent%29)**([AWTEvent](../../java/awt/AWTEvent.html "class in java.awt") e)

Dispatches an event to this component or one of its sub components.

void

**[doLayout](../../java/awt/Component.html#doLayout%28%29)**()

Prompts the layout manager to lay out this component.

void

**[enable](../../java/awt/Component.html#enable%28%29)**()

Deprecated.

As of JDK version 1.1, replaced by setEnabled(boolean).

void

**[enable](../../java/awt/Component.html#enable%28boolean%29)**(boolean b)

Deprecated.

As of JDK version 1.1, replaced by setEnabled(boolean).

protected void

**[enableEvents](../../java/awt/Component.html#enableEvents%28long%29)**(long eventsToEnable)

Enables the events defined by the specified event mask parameter to be delivered to this component.

void

**[enableInputMethods](../../java/awt/Component.html#enableInputMethods%28boolean%29)**(boolean enable)

Enables or disables input method support for this component.

protected void

**[firePropertyChange](../../java/awt/Component.html#firePropertyChange%28java.lang.String,%20boolean,%20boolean%29)**([String](../../java/lang/String.html "class in java.lang") propertyName, boolean oldValue, boolean newValue)

Support for reporting bound property changes for boolean properties.

void

**[firePropertyChange](../../java/awt/Component.html#firePropertyChange%28java.lang.String,%20byte,%20byte%29)**([String](../../java/lang/String.html "class in java.lang") propertyName, byte oldValue, byte newValue)

Reports a bound property change.

void

**[firePropertyChange](../../java/awt/Component.html#firePropertyChange%28java.lang.String,%20char,%20char%29)**([String](../../java/lang/String.html "class in java.lang") propertyName, char oldValue, char newValue)

Reports a bound property change.

void

**[firePropertyChange](../../java/awt/Component.html#firePropertyChange%28java.lang.String,%20double,%20double%29)**([String](../../java/lang/String.html "class in java.lang") propertyName, double oldValue, double newValue)

Reports a bound property change.

void

**[firePropertyChange](../../java/awt/Component.html#firePropertyChange%28java.lang.String,%20float,%20float%29)**([String](../../java/lang/String.html "class in java.lang") propertyName, float oldValue, float newValue)

Reports a bound property change.

protected void

**[firePropertyChange](../../java/awt/Component.html#firePropertyChange%28java.lang.String,%20int,%20int%29)**([String](../../java/lang/String.html "class in java.lang") propertyName, int oldValue, int newValue)

Support for reporting bound property changes for integer properties.

void

**[firePropertyChange](../../java/awt/Component.html#firePropertyChange%28java.lang.String,%20long,%20long%29)**([String](../../java/lang/String.html "class in java.lang") propertyName, long oldValue, long newValue)

Reports a bound property change.

protected void

**[firePropertyChange](../../java/awt/Component.html#firePropertyChange%28java.lang.String,%20java.lang.Object,%20java.lang.Object%29)**([String](../../java/lang/String.html "class in java.lang") propertyName,[Object](../../java/lang/Object.html "class in java.lang") oldValue,[Object](../../java/lang/Object.html "class in java.lang") newValue)

Support for reporting bound property changes for Object properties.

void

**[firePropertyChange](../../java/awt/Component.html#firePropertyChange%28java.lang.String,%20short,%20short%29)**([String](../../java/lang/String.html "class in java.lang") propertyName, short oldValue, short newValue)

Reports a bound property change.

[AccessibleContext](../../javax/accessibility/AccessibleContext.html "class in javax.accessibility")

**[getAccessibleContext](../../java/awt/Component.html#getAccessibleContext%28%29)**()

Gets the AccessibleContext associated with this Component.

float

**[getAlignmentX](../../java/awt/Component.html#getAlignmentX%28%29)**()

Returns the alignment along the x axis.

float

**[getAlignmentY](../../java/awt/Component.html#getAlignmentY%28%29)**()

Returns the alignment along the y axis.

[Color](../../java/awt/Color.html "class in java.awt")

**[getBackground](../../java/awt/Component.html#getBackground%28%29)**()

Gets the background color of this component.

int

**[getBaseline](../../java/awt/Component.html#getBaseline%28int,%20int%29)**(int width, int height)

Returns the baseline.

[Component.BaselineResizeBehavior](../../java/awt/Component.BaselineResizeBehavior.html "enum in java.awt")

**[getBaselineResizeBehavior](../../java/awt/Component.html#getBaselineResizeBehavior%28%29)**()

Returns an enum indicating how the baseline of the component changes as the size changes.

[Rectangle](../../java/awt/Rectangle.html "class in java.awt")

**[getBounds](../../java/awt/Component.html#getBounds%28%29)**()

Gets the bounds of this component in the form of aRectangle object.

[Rectangle](../../java/awt/Rectangle.html "class in java.awt")

**[getBounds](../../java/awt/Component.html#getBounds%28java.awt.Rectangle%29)**([Rectangle](../../java/awt/Rectangle.html "class in java.awt") rv)

Stores the bounds of this component into "return value" rv and return rv.

[ColorModel](../../java/awt/image/ColorModel.html "class in java.awt.image")

**[getColorModel](../../java/awt/Component.html#getColorModel%28%29)**()

Gets the instance of ColorModel used to display the component on the output device.

[Component](../../java/awt/Component.html "class in java.awt")

**[getComponentAt](../../java/awt/Component.html#getComponentAt%28int,%20int%29)**(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](../../java/awt/Component.html "class in java.awt")

**[getComponentAt](../../java/awt/Component.html#getComponentAt%28java.awt.Point%29)**([Point](../../java/awt/Point.html "class in java.awt") p)

Returns the component or subcomponent that contains the specified point.

[ComponentListener](../../java/awt/event/ComponentListener.html "interface in java.awt.event")[]

**[getComponentListeners](../../java/awt/Component.html#getComponentListeners%28%29)**()

Returns an array of all the component listeners registered on this component.

[ComponentOrientation](../../java/awt/ComponentOrientation.html "class in java.awt")

**[getComponentOrientation](../../java/awt/Component.html#getComponentOrientation%28%29)**()

Retrieves the language-sensitive orientation that is to be used to order the elements or text within this component.

[Cursor](../../java/awt/Cursor.html "class in java.awt")

**[getCursor](../../java/awt/Component.html#getCursor%28%29)**()

Gets the cursor set in the component.

[DropTarget](../../java/awt/dnd/DropTarget.html "class in java.awt.dnd")

**[getDropTarget](../../java/awt/Component.html#getDropTarget%28%29)**()

Gets the DropTarget associated with thisComponent.

[Container](../../java/awt/Container.html "class in java.awt")

**[getFocusCycleRootAncestor](../../java/awt/Component.html#getFocusCycleRootAncestor%28%29)**()

Returns the Container which is the focus cycle root of this Component's focus traversal cycle.

[FocusListener](../../java/awt/event/FocusListener.html "interface in java.awt.event")[]

**[getFocusListeners](../../java/awt/Component.html#getFocusListeners%28%29)**()

Returns an array of all the focus listeners registered on this component.

[Set](../../java/util/Set.html "interface in java.util")<[AWTKeyStroke](../../java/awt/AWTKeyStroke.html "class in java.awt")>

**[getFocusTraversalKeys](../../java/awt/Component.html#getFocusTraversalKeys%28int%29)**(int id)

Returns the Set of focus traversal keys for a given traversal operation for this Component.

boolean

**[getFocusTraversalKeysEnabled](../../java/awt/Component.html#getFocusTraversalKeysEnabled%28%29)**()

Returns whether focus traversal keys are enabled for this Component.

[Font](../../java/awt/Font.html "class in java.awt")

**[getFont](../../java/awt/Component.html#getFont%28%29)**()

Gets the font of this component.

[FontMetrics](../../java/awt/FontMetrics.html "class in java.awt")

**[getFontMetrics](../../java/awt/Component.html#getFontMetrics%28java.awt.Font%29)**([Font](../../java/awt/Font.html "class in java.awt") font)

Gets the font metrics for the specified font.

[Color](../../java/awt/Color.html "class in java.awt")

**[getForeground](../../java/awt/Component.html#getForeground%28%29)**()

Gets the foreground color of this component.

[Graphics](../../java/awt/Graphics.html "class in java.awt")

**[getGraphics](../../java/awt/Component.html#getGraphics%28%29)**()

Creates a graphics context for this component.

[GraphicsConfiguration](../../java/awt/GraphicsConfiguration.html "class in java.awt")

**[getGraphicsConfiguration](../../java/awt/Component.html#getGraphicsConfiguration%28%29)**()

Gets the GraphicsConfiguration associated with thisComponent.

int

**[getHeight](../../java/awt/Component.html#getHeight%28%29)**()

Returns the current height of this component.

[HierarchyBoundsListener](../../java/awt/event/HierarchyBoundsListener.html "interface in java.awt.event")[]

**[getHierarchyBoundsListeners](../../java/awt/Component.html#getHierarchyBoundsListeners%28%29)**()

Returns an array of all the hierarchy bounds listeners registered on this component.

[HierarchyListener](../../java/awt/event/HierarchyListener.html "interface in java.awt.event")[]

**[getHierarchyListeners](../../java/awt/Component.html#getHierarchyListeners%28%29)**()

Returns an array of all the hierarchy listeners registered on this component.

boolean

**[getIgnoreRepaint](../../java/awt/Component.html#getIgnoreRepaint%28%29)**()

[InputContext](../../java/awt/im/InputContext.html "class in java.awt.im")

**[getInputContext](../../java/awt/Component.html#getInputContext%28%29)**()

Gets the input context used by this component for handling the communication with input methods when text is entered in this component.

[InputMethodListener](../../java/awt/event/InputMethodListener.html "interface in java.awt.event")[]

**[getInputMethodListeners](../../java/awt/Component.html#getInputMethodListeners%28%29)**()

Returns an array of all the input method listeners registered on this component.

[InputMethodRequests](../../java/awt/im/InputMethodRequests.html "interface in java.awt.im")

**[getInputMethodRequests](../../java/awt/Component.html#getInputMethodRequests%28%29)**()

Gets the input method request handler which supports requests from input methods for this component.

[KeyListener](../../java/awt/event/KeyListener.html "interface in java.awt.event")[]

**[getKeyListeners](../../java/awt/Component.html#getKeyListeners%28%29)**()

Returns an array of all the key listeners registered on this component.

<T extends [EventListener](../../java/util/EventListener.html "interface in java.util")> T[]

**[getListeners](../../java/awt/Component.html#getListeners%28java.lang.Class%29)**([Class](../../java/lang/Class.html "class in java.lang")<T> listenerType)

Returns an array of all the objects currently registered as _Foo_Listeners upon this Component.

[Locale](../../java/util/Locale.html "class in java.util")

**[getLocale](../../java/awt/Component.html#getLocale%28%29)**()

Gets the locale of this component.

[Point](../../java/awt/Point.html "class in java.awt")

**[getLocation](../../java/awt/Component.html#getLocation%28%29)**()

Gets the location of this component in the form of a point specifying the component's top-left corner.

[Point](../../java/awt/Point.html "class in java.awt")

**[getLocation](../../java/awt/Component.html#getLocation%28java.awt.Point%29)**([Point](../../java/awt/Point.html "class in java.awt") rv)

Stores the x,y origin of this component into "return value" rv and return rv.

[Point](../../java/awt/Point.html "class in java.awt")

**[getLocationOnScreen](../../java/awt/Component.html#getLocationOnScreen%28%29)**()

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.

[Dimension](../../java/awt/Dimension.html "class in java.awt")

**[getMaximumSize](../../java/awt/Component.html#getMaximumSize%28%29)**()

Gets the maximum size of this component.

[Dimension](../../java/awt/Dimension.html "class in java.awt")

**[getMinimumSize](../../java/awt/Component.html#getMinimumSize%28%29)**()

Gets the mininimum size of this component.

[MouseListener](../../java/awt/event/MouseListener.html "interface in java.awt.event")[]

**[getMouseListeners](../../java/awt/Component.html#getMouseListeners%28%29)**()

Returns an array of all the mouse listeners registered on this component.

[MouseMotionListener](../../java/awt/event/MouseMotionListener.html "interface in java.awt.event")[]

**[getMouseMotionListeners](../../java/awt/Component.html#getMouseMotionListeners%28%29)**()

Returns an array of all the mouse motion listeners registered on this component.

[Point](../../java/awt/Point.html "class in java.awt")

**[getMousePosition](../../java/awt/Component.html#getMousePosition%28%29)**()

Returns the position of the mouse pointer in this Component's coordinate space if the Component is directly under the mouse pointer, otherwise returns null.

[MouseWheelListener](../../java/awt/event/MouseWheelListener.html "interface in java.awt.event")[]

**[getMouseWheelListeners](../../java/awt/Component.html#getMouseWheelListeners%28%29)**()

Returns an array of all the mouse wheel listeners registered on this component.

[String](../../java/lang/String.html "class in java.lang")

**[getName](../../java/awt/Component.html#getName%28%29)**()

Gets the name of the component.

[Container](../../java/awt/Container.html "class in java.awt")

**[getParent](../../java/awt/Component.html#getParent%28%29)**()

Gets the parent of this component.

java.awt.peer.ComponentPeer

**[getPeer](../../java/awt/Component.html#getPeer%28%29)**()

Deprecated.

As of JDK version 1.1, programs should not directly manipulate peers; replaced by boolean isDisplayable().

[Dimension](../../java/awt/Dimension.html "class in java.awt")

**[getPreferredSize](../../java/awt/Component.html#getPreferredSize%28%29)**()

Gets the preferred size of this component.

[PropertyChangeListener](../../java/beans/PropertyChangeListener.html "interface in java.beans")[]

**[getPropertyChangeListeners](../../java/awt/Component.html#getPropertyChangeListeners%28%29)**()

Returns an array of all the property change listeners registered on this component.

[PropertyChangeListener](../../java/beans/PropertyChangeListener.html "interface in java.beans")[]

**[getPropertyChangeListeners](../../java/awt/Component.html#getPropertyChangeListeners%28java.lang.String%29)**([String](../../java/lang/String.html "class in java.lang") propertyName)

Returns an array of all the listeners which have been associated with the named property.

[Dimension](../../java/awt/Dimension.html "class in java.awt")

**[getSize](../../java/awt/Component.html#getSize%28%29)**()

Returns the size of this component in the form of aDimension object.

[Dimension](../../java/awt/Dimension.html "class in java.awt")

**[getSize](../../java/awt/Component.html#getSize%28java.awt.Dimension%29)**([Dimension](../../java/awt/Dimension.html "class in java.awt") rv)

Stores the width/height of this component into "return value" rv and return rv.

[Toolkit](../../java/awt/Toolkit.html "class in java.awt")

**[getToolkit](../../java/awt/Component.html#getToolkit%28%29)**()

Gets the toolkit of this component.

[Object](../../java/lang/Object.html "class in java.lang")

**[getTreeLock](../../java/awt/Component.html#getTreeLock%28%29)**()

Gets this component's locking object (the object that owns the thread synchronization monitor) for AWT component-tree and layout operations.

int

**[getWidth](../../java/awt/Component.html#getWidth%28%29)**()

Returns the current width of this component.

int

**[getX](../../java/awt/Component.html#getX%28%29)**()

Returns the current x coordinate of the components origin.

int

**[getY](../../java/awt/Component.html#getY%28%29)**()

Returns the current y coordinate of the components origin.

boolean

**[gotFocus](../../java/awt/Component.html#gotFocus%28java.awt.Event,%20java.lang.Object%29)**([Event](../../java/awt/Event.html "class in java.awt") evt,[Object](../../java/lang/Object.html "class in java.lang") what)

Deprecated.

As of JDK version 1.1, replaced by processFocusEvent(FocusEvent).

boolean

**[handleEvent](../../java/awt/Component.html#handleEvent%28java.awt.Event%29)**([Event](../../java/awt/Event.html "class in java.awt") evt)

Deprecated.

As of JDK version 1.1 replaced by processEvent(AWTEvent).

boolean

**[hasFocus](../../java/awt/Component.html#hasFocus%28%29)**()

Returns true if this Component is the focus owner.

void

**[hide](../../java/awt/Component.html#hide%28%29)**()

Deprecated.

As of JDK version 1.1, replaced by setVisible(boolean).

boolean

**[imageUpdate](../../java/awt/Component.html#imageUpdate%28java.awt.Image,%20int,%20int,%20int,%20int,%20int%29)**([Image](../../java/awt/Image.html "class in java.awt") img, int infoflags, int x, int y, int w, int h)

Repaints the component when the image has changed.

boolean

**[inside](../../java/awt/Component.html#inside%28int,%20int%29)**(int x, int y)

Deprecated.

As of JDK version 1.1, replaced by contains(int, int).

void

**[invalidate](../../java/awt/Component.html#invalidate%28%29)**()

Invalidates this component and its ancestors.

boolean

**[isBackgroundSet](../../java/awt/Component.html#isBackgroundSet%28%29)**()

Returns whether the background color has been explicitly set for this Component.

boolean

**[isCursorSet](../../java/awt/Component.html#isCursorSet%28%29)**()

Returns whether the cursor has been explicitly set for this Component.

boolean

**[isDisplayable](../../java/awt/Component.html#isDisplayable%28%29)**()

Determines whether this component is displayable.

boolean

**[isDoubleBuffered](../../java/awt/Component.html#isDoubleBuffered%28%29)**()

Returns true if this component is painted to an offscreen image ("buffer") that's copied to the screen later.

boolean

**[isEnabled](../../java/awt/Component.html#isEnabled%28%29)**()

Determines whether this component is enabled.

boolean

**[isFocusable](../../java/awt/Component.html#isFocusable%28%29)**()

Returns whether this Component can be focused.

boolean

**[isFocusCycleRoot](../../java/awt/Component.html#isFocusCycleRoot%28java.awt.Container%29)**([Container](../../java/awt/Container.html "class in java.awt") container)

Returns whether the specified Container is the focus cycle root of this Component's focus traversal cycle.

boolean

**[isFocusOwner](../../java/awt/Component.html#isFocusOwner%28%29)**()

Returns true if this Component is the focus owner.

boolean

**[isFocusTraversable](../../java/awt/Component.html#isFocusTraversable%28%29)**()

Deprecated.

As of 1.4, replaced by isFocusable().

boolean

**[isFontSet](../../java/awt/Component.html#isFontSet%28%29)**()

Returns whether the font has been explicitly set for this Component.

boolean

**[isForegroundSet](../../java/awt/Component.html#isForegroundSet%28%29)**()

Returns whether the foreground color has been explicitly set for this Component.

boolean

**[isLightweight](../../java/awt/Component.html#isLightweight%28%29)**()

A lightweight component doesn't have a native toolkit peer.

boolean

**[isMaximumSizeSet](../../java/awt/Component.html#isMaximumSizeSet%28%29)**()

Returns true if the maximum size has been set to a non-null value otherwise returns false.

boolean

**[isMinimumSizeSet](../../java/awt/Component.html#isMinimumSizeSet%28%29)**()

Returns whether or not setMinimumSize has been invoked with a non-null value.

boolean

**[isOpaque](../../java/awt/Component.html#isOpaque%28%29)**()

Returns true if this component is completely opaque, returns false by default.

boolean

**[isPreferredSizeSet](../../java/awt/Component.html#isPreferredSizeSet%28%29)**()

Returns true if the preferred size has been set to a non-null value otherwise returns false.

boolean

**[isShowing](../../java/awt/Component.html#isShowing%28%29)**()

Determines whether this component is showing on screen.

boolean

**[isValid](../../java/awt/Component.html#isValid%28%29)**()

Determines whether this component is valid.

boolean

**[isVisible](../../java/awt/Component.html#isVisible%28%29)**()

Determines whether this component should be visible when its parent is visible.

boolean

**[keyDown](../../java/awt/Component.html#keyDown%28java.awt.Event,%20int%29)**([Event](../../java/awt/Event.html "class in java.awt") evt, int key)

Deprecated.

As of JDK version 1.1, replaced by processKeyEvent(KeyEvent).

boolean

**[keyUp](../../java/awt/Component.html#keyUp%28java.awt.Event,%20int%29)**([Event](../../java/awt/Event.html "class in java.awt") evt, int key)

Deprecated.

As of JDK version 1.1, replaced by processKeyEvent(KeyEvent).

void

**[layout](../../java/awt/Component.html#layout%28%29)**()

Deprecated.

As of JDK version 1.1, replaced by doLayout().

void

**[list](../../java/awt/Component.html#list%28%29)**()

Prints a listing of this component to the standard system output stream System.out.

void

**[list](../../java/awt/Component.html#list%28java.io.PrintStream%29)**([PrintStream](../../java/io/PrintStream.html "class in java.io") out)

Prints a listing of this component to the specified output stream.

void

**[list](../../java/awt/Component.html#list%28java.io.PrintStream,%20int%29)**([PrintStream](../../java/io/PrintStream.html "class in java.io") out, int indent)

Prints out a list, starting at the specified indentation, to the specified print stream.

void

**[list](../../java/awt/Component.html#list%28java.io.PrintWriter%29)**([PrintWriter](../../java/io/PrintWriter.html "class in java.io") out)

Prints a listing to the specified print writer.

void

**[list](../../java/awt/Component.html#list%28java.io.PrintWriter,%20int%29)**([PrintWriter](../../java/io/PrintWriter.html "class in java.io") out, int indent)

Prints out a list, starting at the specified indentation, to the specified print writer.

[Component](../../java/awt/Component.html "class in java.awt")

**[locate](../../java/awt/Component.html#locate%28int,%20int%29)**(int x, int y)

Deprecated.

As of JDK version 1.1, replaced by getComponentAt(int, int).

[Point](../../java/awt/Point.html "class in java.awt")

**[location](../../java/awt/Component.html#location%28%29)**()

Deprecated.

As of JDK version 1.1, replaced by getLocation().

boolean

**[lostFocus](../../java/awt/Component.html#lostFocus%28java.awt.Event,%20java.lang.Object%29)**([Event](../../java/awt/Event.html "class in java.awt") evt,[Object](../../java/lang/Object.html "class in java.lang") what)

Deprecated.

As of JDK version 1.1, replaced by processFocusEvent(FocusEvent).

[Dimension](../../java/awt/Dimension.html "class in java.awt")

**[minimumSize](../../java/awt/Component.html#minimumSize%28%29)**()

Deprecated.

As of JDK version 1.1, replaced by getMinimumSize().

boolean

**[mouseDown](../../java/awt/Component.html#mouseDown%28java.awt.Event,%20int,%20int%29)**([Event](../../java/awt/Event.html "class in java.awt") evt, int x, int y)

Deprecated.

As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).

boolean

**[mouseDrag](../../java/awt/Component.html#mouseDrag%28java.awt.Event,%20int,%20int%29)**([Event](../../java/awt/Event.html "class in java.awt") evt, int x, int y)

Deprecated.

As of JDK version 1.1, replaced by processMouseMotionEvent(MouseEvent).

boolean

**[mouseEnter](../../java/awt/Component.html#mouseEnter%28java.awt.Event,%20int,%20int%29)**([Event](../../java/awt/Event.html "class in java.awt") evt, int x, int y)

Deprecated.

As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).

boolean

**[mouseExit](../../java/awt/Component.html#mouseExit%28java.awt.Event,%20int,%20int%29)**([Event](../../java/awt/Event.html "class in java.awt") evt, int x, int y)

Deprecated.

As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).

boolean

**[mouseMove](../../java/awt/Component.html#mouseMove%28java.awt.Event,%20int,%20int%29)**([Event](../../java/awt/Event.html "class in java.awt") evt, int x, int y)

Deprecated.

As of JDK version 1.1, replaced by processMouseMotionEvent(MouseEvent).

boolean

**[mouseUp](../../java/awt/Component.html#mouseUp%28java.awt.Event,%20int,%20int%29)**([Event](../../java/awt/Event.html "class in java.awt") evt, int x, int y)

Deprecated.

As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).

void

**[move](../../java/awt/Component.html#move%28int,%20int%29)**(int x, int y)

Deprecated.

As of JDK version 1.1, replaced by setLocation(int, int).

void

**[nextFocus](../../java/awt/Component.html#nextFocus%28%29)**()

Deprecated.

As of JDK version 1.1, replaced by transferFocus().

void

**[paint](../../java/awt/Component.html#paint%28java.awt.Graphics%29)**([Graphics](../../java/awt/Graphics.html "class in java.awt") g)

Paints this component.

void

**[paintAll](../../java/awt/Component.html#paintAll%28java.awt.Graphics%29)**([Graphics](../../java/awt/Graphics.html "class in java.awt") g)

Paints this component and all of its subcomponents.

protected [String](../../java/lang/String.html "class in java.lang")

**[paramString](../../java/awt/Component.html#paramString%28%29)**()

Returns a string representing the state of this component.

boolean

**[postEvent](../../java/awt/Component.html#postEvent%28java.awt.Event%29)**([Event](../../java/awt/Event.html "class in java.awt") e)

Deprecated.

As of JDK version 1.1, replaced by dispatchEvent(AWTEvent).

[Dimension](../../java/awt/Dimension.html "class in java.awt")

**[preferredSize](../../java/awt/Component.html#preferredSize%28%29)**()

Deprecated.

As of JDK version 1.1, replaced by getPreferredSize().

boolean

**[prepareImage](../../java/awt/Component.html#prepareImage%28java.awt.Image,%20java.awt.image.ImageObserver%29)**([Image](../../java/awt/Image.html "class in java.awt") image,[ImageObserver](../../java/awt/image/ImageObserver.html "interface in java.awt.image") observer)

Prepares an image for rendering on this component.

boolean

**[prepareImage](../../java/awt/Component.html#prepareImage%28java.awt.Image,%20int,%20int,%20java.awt.image.ImageObserver%29)**([Image](../../java/awt/Image.html "class in java.awt") image, int width, int height,[ImageObserver](../../java/awt/image/ImageObserver.html "interface in java.awt.image") observer)

Prepares an image for rendering on this component at the specified width and height.

void

**[print](../../java/awt/Component.html#print%28java.awt.Graphics%29)**([Graphics](../../java/awt/Graphics.html "class in java.awt") g)

Prints this component.

void

**[printAll](../../java/awt/Component.html#printAll%28java.awt.Graphics%29)**([Graphics](../../java/awt/Graphics.html "class in java.awt") g)

Prints this component and all of its subcomponents.

protected void

**[processComponentEvent](../../java/awt/Component.html#processComponentEvent%28java.awt.event.ComponentEvent%29)**([ComponentEvent](../../java/awt/event/ComponentEvent.html "class in java.awt.event") e)

Processes component events occurring on this component by dispatching them to any registeredComponentListener objects.

protected void

**[processEvent](../../java/awt/Component.html#processEvent%28java.awt.AWTEvent%29)**([AWTEvent](../../java/awt/AWTEvent.html "class in java.awt") e)

Processes events occurring on this component.

protected void

**[processFocusEvent](../../java/awt/Component.html#processFocusEvent%28java.awt.event.FocusEvent%29)**([FocusEvent](../../java/awt/event/FocusEvent.html "class in java.awt.event") e)

Processes focus events occurring on this component by dispatching them to any registeredFocusListener objects.

protected void

**[processHierarchyBoundsEvent](../../java/awt/Component.html#processHierarchyBoundsEvent%28java.awt.event.HierarchyEvent%29)**([HierarchyEvent](../../java/awt/event/HierarchyEvent.html "class in java.awt.event") e)

Processes hierarchy bounds events occurring on this component by dispatching them to any registeredHierarchyBoundsListener objects.

protected void

**[processHierarchyEvent](../../java/awt/Component.html#processHierarchyEvent%28java.awt.event.HierarchyEvent%29)**([HierarchyEvent](../../java/awt/event/HierarchyEvent.html "class in java.awt.event") e)

Processes hierarchy events occurring on this component by dispatching them to any registeredHierarchyListener objects.

protected void

**[processInputMethodEvent](../../java/awt/Component.html#processInputMethodEvent%28java.awt.event.InputMethodEvent%29)**([InputMethodEvent](../../java/awt/event/InputMethodEvent.html "class in java.awt.event") e)

Processes input method events occurring on this component by dispatching them to any registeredInputMethodListener objects.

protected void

**[processKeyEvent](../../java/awt/Component.html#processKeyEvent%28java.awt.event.KeyEvent%29)**([KeyEvent](../../java/awt/event/KeyEvent.html "class in java.awt.event") e)

Processes key events occurring on this component by dispatching them to any registeredKeyListener objects.

protected void

**[processMouseEvent](../../java/awt/Component.html#processMouseEvent%28java.awt.event.MouseEvent%29)**([MouseEvent](../../java/awt/event/MouseEvent.html "class in java.awt.event") e)

Processes mouse events occurring on this component by dispatching them to any registeredMouseListener objects.

protected void

**[processMouseMotionEvent](../../java/awt/Component.html#processMouseMotionEvent%28java.awt.event.MouseEvent%29)**([MouseEvent](../../java/awt/event/MouseEvent.html "class in java.awt.event") e)

Processes mouse motion events occurring on this component by dispatching them to any registeredMouseMotionListener objects.

protected void

**[processMouseWheelEvent](../../java/awt/Component.html#processMouseWheelEvent%28java.awt.event.MouseWheelEvent%29)**([MouseWheelEvent](../../java/awt/event/MouseWheelEvent.html "class in java.awt.event") e)

Processes mouse wheel events occurring on this component by dispatching them to any registeredMouseWheelListener objects.

void

**[remove](../../java/awt/Component.html#remove%28java.awt.MenuComponent%29)**([MenuComponent](../../java/awt/MenuComponent.html "class in java.awt") popup)

Removes the specified popup menu from the component.

void

**[removeComponentListener](../../java/awt/Component.html#removeComponentListener%28java.awt.event.ComponentListener%29)**([ComponentListener](../../java/awt/event/ComponentListener.html "interface in java.awt.event") l)

Removes the specified component listener so that it no longer receives component events from this component.

void

**[removeFocusListener](../../java/awt/Component.html#removeFocusListener%28java.awt.event.FocusListener%29)**([FocusListener](../../java/awt/event/FocusListener.html "interface in java.awt.event") l)

Removes the specified focus listener so that it no longer receives focus events from this component.

void

**[removeHierarchyBoundsListener](../../java/awt/Component.html#removeHierarchyBoundsListener%28java.awt.event.HierarchyBoundsListener%29)**([HierarchyBoundsListener](../../java/awt/event/HierarchyBoundsListener.html "interface in java.awt.event") l)

Removes the specified hierarchy bounds listener so that it no longer receives hierarchy bounds events from this component.

void

**[removeHierarchyListener](../../java/awt/Component.html#removeHierarchyListener%28java.awt.event.HierarchyListener%29)**([HierarchyListener](../../java/awt/event/HierarchyListener.html "interface in java.awt.event") l)

Removes the specified hierarchy listener so that it no longer receives hierarchy changed events from this component.

void

**[removeInputMethodListener](../../java/awt/Component.html#removeInputMethodListener%28java.awt.event.InputMethodListener%29)**([InputMethodListener](../../java/awt/event/InputMethodListener.html "interface in java.awt.event") l)

Removes the specified input method listener so that it no longer receives input method events from this component.

void

**[removeKeyListener](../../java/awt/Component.html#removeKeyListener%28java.awt.event.KeyListener%29)**([KeyListener](../../java/awt/event/KeyListener.html "interface in java.awt.event") l)

Removes the specified key listener so that it no longer receives key events from this component.

void

**[removeMouseListener](../../java/awt/Component.html#removeMouseListener%28java.awt.event.MouseListener%29)**([MouseListener](../../java/awt/event/MouseListener.html "interface in java.awt.event") l)

Removes the specified mouse listener so that it no longer receives mouse events from this component.

void

**[removeMouseMotionListener](../../java/awt/Component.html#removeMouseMotionListener%28java.awt.event.MouseMotionListener%29)**([MouseMotionListener](../../java/awt/event/MouseMotionListener.html "interface in java.awt.event") l)

Removes the specified mouse motion listener so that it no longer receives mouse motion events from this component.

void

**[removeMouseWheelListener](../../java/awt/Component.html#removeMouseWheelListener%28java.awt.event.MouseWheelListener%29)**([MouseWheelListener](../../java/awt/event/MouseWheelListener.html "interface in java.awt.event") l)

Removes the specified mouse wheel listener so that it no longer receives mouse wheel events from this component.

void

**[removeNotify](../../java/awt/Component.html#removeNotify%28%29)**()

Makes this Component undisplayable by destroying it native screen resource.

void

**[removePropertyChangeListener](../../java/awt/Component.html#removePropertyChangeListener%28java.beans.PropertyChangeListener%29)**([PropertyChangeListener](../../java/beans/PropertyChangeListener.html "interface in java.beans") listener)

Removes a PropertyChangeListener from the listener list.

void

**[removePropertyChangeListener](../../java/awt/Component.html#removePropertyChangeListener%28java.lang.String,%20java.beans.PropertyChangeListener%29)**([String](../../java/lang/String.html "class in java.lang") propertyName,[PropertyChangeListener](../../java/beans/PropertyChangeListener.html "interface in java.beans") listener)

Removes a PropertyChangeListener from the listener list for a specific property.

void

**[repaint](../../java/awt/Component.html#repaint%28%29)**()

Repaints this component.

void

**[repaint](../../java/awt/Component.html#repaint%28int,%20int,%20int,%20int%29)**(int x, int y, int width, int height)

Repaints the specified rectangle of this component.

void

**[repaint](../../java/awt/Component.html#repaint%28long%29)**(long tm)

Repaints the component.

void

**[repaint](../../java/awt/Component.html#repaint%28long,%20int,%20int,%20int,%20int%29)**(long tm, int x, int y, int width, int height)

Repaints the specified rectangle of this component withintm milliseconds.

void

**[requestFocus](../../java/awt/Component.html#requestFocus%28%29)**()

Requests that this Component get the input focus, and that this Component's top-level ancestor become the focused Window.

protected boolean

**[requestFocus](../../java/awt/Component.html#requestFocus%28boolean%29)**(boolean temporary)

Requests that this Component get the input focus, and that this Component's top-level ancestor become the focused Window.

boolean

**[requestFocusInWindow](../../java/awt/Component.html#requestFocusInWindow%28%29)**()

Requests that this Component get the input focus, if this Component's top-level ancestor is already the focused Window.

protected boolean

**[requestFocusInWindow](../../java/awt/Component.html#requestFocusInWindow%28boolean%29)**(boolean temporary)

Requests that this Component get the input focus, if this Component's top-level ancestor is already the focused Window.

void

**[reshape](../../java/awt/Component.html#reshape%28int,%20int,%20int,%20int%29)**(int x, int y, int width, int height)

Deprecated.

As of JDK version 1.1, replaced by setBounds(int, int, int, int).

void

**[resize](../../java/awt/Component.html#resize%28java.awt.Dimension%29)**([Dimension](../../java/awt/Dimension.html "class in java.awt") d)

Deprecated.

As of JDK version 1.1, replaced by setSize(Dimension).

void

**[resize](../../java/awt/Component.html#resize%28int,%20int%29)**(int width, int height)

Deprecated.

As of JDK version 1.1, replaced by setSize(int, int).

void

**[revalidate](../../java/awt/Component.html#revalidate%28%29)**()

Revalidates the component hierarchy up to the nearest validate root.

void

**[setBackground](../../java/awt/Component.html#setBackground%28java.awt.Color%29)**([Color](../../java/awt/Color.html "class in java.awt") c)

Sets the background color of this component.

void

**[setBounds](../../java/awt/Component.html#setBounds%28int,%20int,%20int,%20int%29)**(int x, int y, int width, int height)

Moves and resizes this component.

void

**[setBounds](../../java/awt/Component.html#setBounds%28java.awt.Rectangle%29)**([Rectangle](../../java/awt/Rectangle.html "class in java.awt") r)

Moves and resizes this component to conform to the new bounding rectangle r.

void

**[setComponentOrientation](../../java/awt/Component.html#setComponentOrientation%28java.awt.ComponentOrientation%29)**([ComponentOrientation](../../java/awt/ComponentOrientation.html "class in java.awt") o)

Sets the language-sensitive orientation that is to be used to order the elements or text within this component.

void

**[setCursor](../../java/awt/Component.html#setCursor%28java.awt.Cursor%29)**([Cursor](../../java/awt/Cursor.html "class in java.awt") cursor)

Sets the cursor image to the specified cursor.

void

**[setDropTarget](../../java/awt/Component.html#setDropTarget%28java.awt.dnd.DropTarget%29)**([DropTarget](../../java/awt/dnd/DropTarget.html "class in java.awt.dnd") dt)

Associate a DropTarget with this component.

void

**[setEnabled](../../java/awt/Component.html#setEnabled%28boolean%29)**(boolean b)

Enables or disables this component, depending on the value of the parameter b.

void

**[setFocusable](../../java/awt/Component.html#setFocusable%28boolean%29)**(boolean focusable)

Sets the focusable state of this Component to the specified value.

void

**[setFocusTraversalKeys](../../java/awt/Component.html#setFocusTraversalKeys%28int,%20java.util.Set%29)**(int id,[Set](../../java/util/Set.html "interface in java.util")<? extends [AWTKeyStroke](../../java/awt/AWTKeyStroke.html "class in java.awt")> keystrokes)

Sets the focus traversal keys for a given traversal operation for this Component.

void

**[setFocusTraversalKeysEnabled](../../java/awt/Component.html#setFocusTraversalKeysEnabled%28boolean%29)**(boolean focusTraversalKeysEnabled)

Sets whether focus traversal keys are enabled for this Component.

void

**[setFont](../../java/awt/Component.html#setFont%28java.awt.Font%29)**([Font](../../java/awt/Font.html "class in java.awt") f)

Sets the font of this component.

void

**[setForeground](../../java/awt/Component.html#setForeground%28java.awt.Color%29)**([Color](../../java/awt/Color.html "class in java.awt") c)

Sets the foreground color of this component.

void

**[setIgnoreRepaint](../../java/awt/Component.html#setIgnoreRepaint%28boolean%29)**(boolean ignoreRepaint)

Sets whether or not paint messages received from the operating system should be ignored.

void

**[setLocale](../../java/awt/Component.html#setLocale%28java.util.Locale%29)**([Locale](../../java/util/Locale.html "class in java.util") l)

Sets the locale of this component.

void

**[setLocation](../../java/awt/Component.html#setLocation%28int,%20int%29)**(int x, int y)

Moves this component to a new location.

void

**[setLocation](../../java/awt/Component.html#setLocation%28java.awt.Point%29)**([Point](../../java/awt/Point.html "class in java.awt") p)

Moves this component to a new location.

void

**[setMaximumSize](../../java/awt/Component.html#setMaximumSize%28java.awt.Dimension%29)**([Dimension](../../java/awt/Dimension.html "class in java.awt") maximumSize)

Sets the maximum size of this component to a constant value.

void

**[setMinimumSize](../../java/awt/Component.html#setMinimumSize%28java.awt.Dimension%29)**([Dimension](../../java/awt/Dimension.html "class in java.awt") minimumSize)

Sets the minimum size of this component to a constant value.

void

**[setName](../../java/awt/Component.html#setName%28java.lang.String%29)**([String](../../java/lang/String.html "class in java.lang") name)

Sets the name of the component to the specified string.

void

**[setPreferredSize](../../java/awt/Component.html#setPreferredSize%28java.awt.Dimension%29)**([Dimension](../../java/awt/Dimension.html "class in java.awt") preferredSize)

Sets the preferred size of this component to a constant value.

void

**[setSize](../../java/awt/Component.html#setSize%28java.awt.Dimension%29)**([Dimension](../../java/awt/Dimension.html "class in java.awt") d)

Resizes this component so that it has width d.width and height d.height.

void

**[setSize](../../java/awt/Component.html#setSize%28int,%20int%29)**(int width, int height)

Resizes this component so that it has width width and height height.

void

**[setVisible](../../java/awt/Component.html#setVisible%28boolean%29)**(boolean b)

Shows or hides this component depending on the value of parameterb.

void

**[show](../../java/awt/Component.html#show%28%29)**()

Deprecated.

As of JDK version 1.1, replaced by setVisible(boolean).

void

**[show](../../java/awt/Component.html#show%28boolean%29)**(boolean b)

Deprecated.

As of JDK version 1.1, replaced by setVisible(boolean).

[Dimension](../../java/awt/Dimension.html "class in java.awt")

**[size](../../java/awt/Component.html#size%28%29)**()

Deprecated.

As of JDK version 1.1, replaced by getSize().

[String](../../java/lang/String.html "class in java.lang")

**[toString](../../java/awt/Component.html#toString%28%29)**()

Returns a string representation of this component and its values.

void

**[transferFocus](../../java/awt/Component.html#transferFocus%28%29)**()

Transfers the focus to the next component, as though this Component were the focus owner.

void

**[transferFocusBackward](../../java/awt/Component.html#transferFocusBackward%28%29)**()

Transfers the focus to the previous component, as though this Component were the focus owner.

void

**[transferFocusUpCycle](../../java/awt/Component.html#transferFocusUpCycle%28%29)**()

Transfers the focus up one focus traversal cycle.

void

**[update](../../java/awt/Component.html#update%28java.awt.Graphics%29)**([Graphics](../../java/awt/Graphics.html "class in java.awt") g)

Updates this component.

void

**[validate](../../java/awt/Component.html#validate%28%29)**()

Validates this component.