Component (Java Platform SE 8 ) (original) (raw)
Modifier and Type
Method
Description
boolean
[action](../../java/awt/Component.html#action-java.awt.Event-java.lang.Object-)([Event](../../java/awt/Event.html "class in java.awt") evt,[Object](../../java/lang/Object.html "class in java.lang") what)
void
[add](../../java/awt/Component.html#add-java.awt.PopupMenu-)([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-java.awt.event.ComponentListener-)([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-java.awt.event.FocusListener-)([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-java.awt.event.HierarchyBoundsListener-)([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-java.awt.event.HierarchyListener-)([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-java.awt.event.InputMethodListener-)([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-java.awt.event.KeyListener-)([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-java.awt.event.MouseListener-)([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-java.awt.event.MouseMotionListener-)([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-java.awt.event.MouseWheelListener-)([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--)()
Makes this Component
displayable by connecting it to a native screen resource.
void
[addPropertyChangeListener](../../java/awt/Component.html#addPropertyChangeListener-java.beans.PropertyChangeListener-)([PropertyChangeListener](../../java/beans/PropertyChangeListener.html "interface in java.beans") listener)
Adds a PropertyChangeListener to the listener list.
void
[addPropertyChangeListener](../../java/awt/Component.html#addPropertyChangeListener-java.lang.String-java.beans.PropertyChangeListener-)([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-java.awt.ComponentOrientation-)([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-int-)(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--)()
int
[checkImage](../../java/awt/Component.html#checkImage-java.awt.Image-java.awt.image.ImageObserver-)([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-java.awt.Image-int-int-java.awt.image.ImageObserver-)([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-java.awt.AWTEvent-java.awt.AWTEvent-)([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-int-int-)(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-java.awt.Point-)([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-java.awt.image.ImageProducer-)([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-int-int-)(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-int-int-)(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-int-int-java.awt.ImageCapabilities-)(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-java.awt.Event-)([Event](../../java/awt/Event.html "class in java.awt") e)
void
[disable](../../java/awt/Component.html#disable--)()
protected void
[disableEvents](../../java/awt/Component.html#disableEvents-long-)(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-java.awt.AWTEvent-)([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--)()
Prompts the layout manager to lay out this component.
void
[enable](../../java/awt/Component.html#enable--)()
void
[enable](../../java/awt/Component.html#enable-boolean-)(boolean b)
protected void
[enableEvents](../../java/awt/Component.html#enableEvents-long-)(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-boolean-)(boolean enable)
Enables or disables input method support for this component.
protected void
[firePropertyChange](../../java/awt/Component.html#firePropertyChange-java.lang.String-boolean-boolean-)([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-java.lang.String-byte-byte-)([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-java.lang.String-char-char-)([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-java.lang.String-double-double-)([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-java.lang.String-float-float-)([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-java.lang.String-int-int-)([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-java.lang.String-long-long-)([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-java.lang.String-java.lang.Object-java.lang.Object-)([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-java.lang.String-short-short-)([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--)()
Gets the AccessibleContext
associated with this Component
.
float
[getAlignmentX](../../java/awt/Component.html#getAlignmentX--)()
Returns the alignment along the x axis.
float
[getAlignmentY](../../java/awt/Component.html#getAlignmentY--)()
Returns the alignment along the y axis.
[Color](../../java/awt/Color.html "class in java.awt")
[getBackground](../../java/awt/Component.html#getBackground--)()
Gets the background color of this component.
int
[getBaseline](../../java/awt/Component.html#getBaseline-int-int-)(int width, int height)
Returns the baseline.
[Component.BaselineResizeBehavior](../../java/awt/Component.BaselineResizeBehavior.html "enum in java.awt")
[getBaselineResizeBehavior](../../java/awt/Component.html#getBaselineResizeBehavior--)()
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--)()
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-java.awt.Rectangle-)([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--)()
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-int-int-)(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-java.awt.Point-)([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--)()
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--)()
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--)()
Gets the cursor set in the component.
[DropTarget](../../java/awt/dnd/DropTarget.html "class in java.awt.dnd")
[getDropTarget](../../java/awt/Component.html#getDropTarget--)()
Gets the DropTarget
associated with thisComponent
.
[Container](../../java/awt/Container.html "class in java.awt")
[getFocusCycleRootAncestor](../../java/awt/Component.html#getFocusCycleRootAncestor--)()
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--)()
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-int-)(int id)
Returns the Set of focus traversal keys for a given traversal operation for this Component.
boolean
[getFocusTraversalKeysEnabled](../../java/awt/Component.html#getFocusTraversalKeysEnabled--)()
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--)()
Gets the font of this component.
[FontMetrics](../../java/awt/FontMetrics.html "class in java.awt")
[getFontMetrics](../../java/awt/Component.html#getFontMetrics-java.awt.Font-)([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--)()
Gets the foreground color of this component.
[Graphics](../../java/awt/Graphics.html "class in java.awt")
[getGraphics](../../java/awt/Component.html#getGraphics--)()
Creates a graphics context for this component.
[GraphicsConfiguration](../../java/awt/GraphicsConfiguration.html "class in java.awt")
[getGraphicsConfiguration](../../java/awt/Component.html#getGraphicsConfiguration--)()
Gets the GraphicsConfiguration
associated with thisComponent
.
int
[getHeight](../../java/awt/Component.html#getHeight--)()
Returns the current height of this component.
[HierarchyBoundsListener](../../java/awt/event/HierarchyBoundsListener.html "interface in java.awt.event")[]
[getHierarchyBoundsListeners](../../java/awt/Component.html#getHierarchyBoundsListeners--)()
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--)()
Returns an array of all the hierarchy listeners registered on this component.
boolean
[getIgnoreRepaint](../../java/awt/Component.html#getIgnoreRepaint--)()
[InputContext](../../java/awt/im/InputContext.html "class in java.awt.im")
[getInputContext](../../java/awt/Component.html#getInputContext--)()
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--)()
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--)()
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--)()
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-java.lang.Class-)([Class](../../java/lang/Class.html "class in java.lang")<T> listenerType)
Returns an array of all the objects currently registered as _Foo_Listener
s upon this Component
.
[Locale](../../java/util/Locale.html "class in java.util")
[getLocale](../../java/awt/Component.html#getLocale--)()
Gets the locale of this component.
[Point](../../java/awt/Point.html "class in java.awt")
[getLocation](../../java/awt/Component.html#getLocation--)()
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-java.awt.Point-)([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--)()
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--)()
Gets the maximum size of this component.
[Dimension](../../java/awt/Dimension.html "class in java.awt")
[getMinimumSize](../../java/awt/Component.html#getMinimumSize--)()
Gets the minimum size of this component.
[MouseListener](../../java/awt/event/MouseListener.html "interface in java.awt.event")[]
[getMouseListeners](../../java/awt/Component.html#getMouseListeners--)()
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--)()
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--)()
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--)()
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--)()
Gets the name of the component.
[Container](../../java/awt/Container.html "class in java.awt")
[getParent](../../java/awt/Component.html#getParent--)()
Gets the parent of this component.
java.awt.peer.ComponentPeer
[getPeer](../../java/awt/Component.html#getPeer--)()
[Dimension](../../java/awt/Dimension.html "class in java.awt")
[getPreferredSize](../../java/awt/Component.html#getPreferredSize--)()
Gets the preferred size of this component.
[PropertyChangeListener](../../java/beans/PropertyChangeListener.html "interface in java.beans")[]
[getPropertyChangeListeners](../../java/awt/Component.html#getPropertyChangeListeners--)()
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-java.lang.String-)([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--)()
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-java.awt.Dimension-)([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--)()
Gets the toolkit of this component.
[Object](../../java/lang/Object.html "class in java.lang")
[getTreeLock](../../java/awt/Component.html#getTreeLock--)()
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--)()
Returns the current width of this component.
int
[getX](../../java/awt/Component.html#getX--)()
Returns the current x coordinate of the components origin.
int
[getY](../../java/awt/Component.html#getY--)()
Returns the current y coordinate of the components origin.
boolean
[gotFocus](../../java/awt/Component.html#gotFocus-java.awt.Event-java.lang.Object-)([Event](../../java/awt/Event.html "class in java.awt") evt,[Object](../../java/lang/Object.html "class in java.lang") what)
boolean
[handleEvent](../../java/awt/Component.html#handleEvent-java.awt.Event-)([Event](../../java/awt/Event.html "class in java.awt") evt)
boolean
[hasFocus](../../java/awt/Component.html#hasFocus--)()
Returns true
if this Component
is the focus owner.
void
[hide](../../java/awt/Component.html#hide--)()
boolean
[imageUpdate](../../java/awt/Component.html#imageUpdate-java.awt.Image-int-int-int-int-int-)([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-int-int-)(int x, int y)
void
[invalidate](../../java/awt/Component.html#invalidate--)()
Invalidates this component and its ancestors.
boolean
[isBackgroundSet](../../java/awt/Component.html#isBackgroundSet--)()
Returns whether the background color has been explicitly set for this Component.
boolean
[isCursorSet](../../java/awt/Component.html#isCursorSet--)()
Returns whether the cursor has been explicitly set for this Component.
boolean
[isDisplayable](../../java/awt/Component.html#isDisplayable--)()
Determines whether this component is displayable.
boolean
[isDoubleBuffered](../../java/awt/Component.html#isDoubleBuffered--)()
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--)()
Determines whether this component is enabled.
boolean
[isFocusable](../../java/awt/Component.html#isFocusable--)()
Returns whether this Component can be focused.
boolean
[isFocusCycleRoot](../../java/awt/Component.html#isFocusCycleRoot-java.awt.Container-)([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--)()
Returns true
if this Component
is the focus owner.
boolean
[isFocusTraversable](../../java/awt/Component.html#isFocusTraversable--)()
boolean
[isFontSet](../../java/awt/Component.html#isFontSet--)()
Returns whether the font has been explicitly set for this Component.
boolean
[isForegroundSet](../../java/awt/Component.html#isForegroundSet--)()
Returns whether the foreground color has been explicitly set for this Component.
boolean
[isLightweight](../../java/awt/Component.html#isLightweight--)()
A lightweight component doesn't have a native toolkit peer.
boolean
[isMaximumSizeSet](../../java/awt/Component.html#isMaximumSizeSet--)()
Returns true if the maximum size has been set to a non-null
value otherwise returns false.
boolean
[isMinimumSizeSet](../../java/awt/Component.html#isMinimumSizeSet--)()
Returns whether or not setMinimumSize
has been invoked with a non-null value.
boolean
[isOpaque](../../java/awt/Component.html#isOpaque--)()
Returns true if this component is completely opaque, returns false by default.
boolean
[isPreferredSizeSet](../../java/awt/Component.html#isPreferredSizeSet--)()
Returns true if the preferred size has been set to a non-null
value otherwise returns false.
boolean
[isShowing](../../java/awt/Component.html#isShowing--)()
Determines whether this component is showing on screen.
boolean
[isValid](../../java/awt/Component.html#isValid--)()
Determines whether this component is valid.
boolean
[isVisible](../../java/awt/Component.html#isVisible--)()
Determines whether this component should be visible when its parent is visible.
boolean
[keyDown](../../java/awt/Component.html#keyDown-java.awt.Event-int-)([Event](../../java/awt/Event.html "class in java.awt") evt, int key)
boolean
[keyUp](../../java/awt/Component.html#keyUp-java.awt.Event-int-)([Event](../../java/awt/Event.html "class in java.awt") evt, int key)
void
[layout](../../java/awt/Component.html#layout--)()
void
[list](../../java/awt/Component.html#list--)()
Prints a listing of this component to the standard system output stream System.out
.
void
[list](../../java/awt/Component.html#list-java.io.PrintStream-)([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-java.io.PrintStream-int-)([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-java.io.PrintWriter-)([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-java.io.PrintWriter-int-)([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-int-int-)(int x, int y)
[Point](../../java/awt/Point.html "class in java.awt")
[location](../../java/awt/Component.html#location--)()
boolean
[lostFocus](../../java/awt/Component.html#lostFocus-java.awt.Event-java.lang.Object-)([Event](../../java/awt/Event.html "class in java.awt") evt,[Object](../../java/lang/Object.html "class in java.lang") what)
[Dimension](../../java/awt/Dimension.html "class in java.awt")
[minimumSize](../../java/awt/Component.html#minimumSize--)()
boolean
[mouseDown](../../java/awt/Component.html#mouseDown-java.awt.Event-int-int-)([Event](../../java/awt/Event.html "class in java.awt") evt, int x, int y)
boolean
[mouseDrag](../../java/awt/Component.html#mouseDrag-java.awt.Event-int-int-)([Event](../../java/awt/Event.html "class in java.awt") evt, int x, int y)
boolean
[mouseEnter](../../java/awt/Component.html#mouseEnter-java.awt.Event-int-int-)([Event](../../java/awt/Event.html "class in java.awt") evt, int x, int y)
boolean
[mouseExit](../../java/awt/Component.html#mouseExit-java.awt.Event-int-int-)([Event](../../java/awt/Event.html "class in java.awt") evt, int x, int y)
boolean
[mouseMove](../../java/awt/Component.html#mouseMove-java.awt.Event-int-int-)([Event](../../java/awt/Event.html "class in java.awt") evt, int x, int y)
boolean
[mouseUp](../../java/awt/Component.html#mouseUp-java.awt.Event-int-int-)([Event](../../java/awt/Event.html "class in java.awt") evt, int x, int y)
void
[move](../../java/awt/Component.html#move-int-int-)(int x, int y)
void
[nextFocus](../../java/awt/Component.html#nextFocus--)()
void
[paint](../../java/awt/Component.html#paint-java.awt.Graphics-)([Graphics](../../java/awt/Graphics.html "class in java.awt") g)
Paints this component.
void
[paintAll](../../java/awt/Component.html#paintAll-java.awt.Graphics-)([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--)()
Returns a string representing the state of this component.
boolean
[postEvent](../../java/awt/Component.html#postEvent-java.awt.Event-)([Event](../../java/awt/Event.html "class in java.awt") e)
[Dimension](../../java/awt/Dimension.html "class in java.awt")
[preferredSize](../../java/awt/Component.html#preferredSize--)()
boolean
[prepareImage](../../java/awt/Component.html#prepareImage-java.awt.Image-java.awt.image.ImageObserver-)([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-java.awt.Image-int-int-java.awt.image.ImageObserver-)([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-java.awt.Graphics-)([Graphics](../../java/awt/Graphics.html "class in java.awt") g)
Prints this component.
void
[printAll](../../java/awt/Component.html#printAll-java.awt.Graphics-)([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-java.awt.event.ComponentEvent-)([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-java.awt.AWTEvent-)([AWTEvent](../../java/awt/AWTEvent.html "class in java.awt") e)
Processes events occurring on this component.
protected void
[processFocusEvent](../../java/awt/Component.html#processFocusEvent-java.awt.event.FocusEvent-)([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-java.awt.event.HierarchyEvent-)([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-java.awt.event.HierarchyEvent-)([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-java.awt.event.InputMethodEvent-)([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-java.awt.event.KeyEvent-)([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-java.awt.event.MouseEvent-)([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-java.awt.event.MouseEvent-)([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-java.awt.event.MouseWheelEvent-)([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-java.awt.MenuComponent-)([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-java.awt.event.ComponentListener-)([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-java.awt.event.FocusListener-)([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-java.awt.event.HierarchyBoundsListener-)([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-java.awt.event.HierarchyListener-)([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-java.awt.event.InputMethodListener-)([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-java.awt.event.KeyListener-)([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-java.awt.event.MouseListener-)([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-java.awt.event.MouseMotionListener-)([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-java.awt.event.MouseWheelListener-)([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--)()
Makes this Component
undisplayable by destroying it native screen resource.
void
[removePropertyChangeListener](../../java/awt/Component.html#removePropertyChangeListener-java.beans.PropertyChangeListener-)([PropertyChangeListener](../../java/beans/PropertyChangeListener.html "interface in java.beans") listener)
Removes a PropertyChangeListener from the listener list.
void
[removePropertyChangeListener](../../java/awt/Component.html#removePropertyChangeListener-java.lang.String-java.beans.PropertyChangeListener-)([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--)()
Repaints this component.
void
[repaint](../../java/awt/Component.html#repaint-int-int-int-int-)(int x, int y, int width, int height)
Repaints the specified rectangle of this component.
void
[repaint](../../java/awt/Component.html#repaint-long-)(long tm)
Repaints the component.
void
[repaint](../../java/awt/Component.html#repaint-long-int-int-int-int-)(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--)()
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-boolean-)(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--)()
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-boolean-)(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-int-int-int-int-)(int x, int y, int width, int height)
void
[resize](../../java/awt/Component.html#resize-java.awt.Dimension-)([Dimension](../../java/awt/Dimension.html "class in java.awt") d)
void
[resize](../../java/awt/Component.html#resize-int-int-)(int width, int height)
void
[revalidate](../../java/awt/Component.html#revalidate--)()
Revalidates the component hierarchy up to the nearest validate root.
void
[setBackground](../../java/awt/Component.html#setBackground-java.awt.Color-)([Color](../../java/awt/Color.html "class in java.awt") c)
Sets the background color of this component.
void
[setBounds](../../java/awt/Component.html#setBounds-int-int-int-int-)(int x, int y, int width, int height)
Moves and resizes this component.
void
[setBounds](../../java/awt/Component.html#setBounds-java.awt.Rectangle-)([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-java.awt.ComponentOrientation-)([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-java.awt.Cursor-)([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-java.awt.dnd.DropTarget-)([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-boolean-)(boolean b)
Enables or disables this component, depending on the value of the parameter b
.
void
[setFocusable](../../java/awt/Component.html#setFocusable-boolean-)(boolean focusable)
Sets the focusable state of this Component to the specified value.
void
[setFocusTraversalKeys](../../java/awt/Component.html#setFocusTraversalKeys-int-java.util.Set-)(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-boolean-)(boolean focusTraversalKeysEnabled)
Sets whether focus traversal keys are enabled for this Component.
void
[setFont](../../java/awt/Component.html#setFont-java.awt.Font-)([Font](../../java/awt/Font.html "class in java.awt") f)
Sets the font of this component.
void
[setForeground](../../java/awt/Component.html#setForeground-java.awt.Color-)([Color](../../java/awt/Color.html "class in java.awt") c)
Sets the foreground color of this component.
void
[setIgnoreRepaint](../../java/awt/Component.html#setIgnoreRepaint-boolean-)(boolean ignoreRepaint)
Sets whether or not paint messages received from the operating system should be ignored.
void
[setLocale](../../java/awt/Component.html#setLocale-java.util.Locale-)([Locale](../../java/util/Locale.html "class in java.util") l)
Sets the locale of this component.
void
[setLocation](../../java/awt/Component.html#setLocation-int-int-)(int x, int y)
Moves this component to a new location.
void
[setLocation](../../java/awt/Component.html#setLocation-java.awt.Point-)([Point](../../java/awt/Point.html "class in java.awt") p)
Moves this component to a new location.
void
[setMaximumSize](../../java/awt/Component.html#setMaximumSize-java.awt.Dimension-)([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-java.awt.Dimension-)([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-java.lang.String-)([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-java.awt.Dimension-)([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-java.awt.Dimension-)([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-int-int-)(int width, int height)
Resizes this component so that it has width width
and height height
.
void
[setVisible](../../java/awt/Component.html#setVisible-boolean-)(boolean b)
Shows or hides this component depending on the value of parameterb
.
void
[show](../../java/awt/Component.html#show--)()
void
[show](../../java/awt/Component.html#show-boolean-)(boolean b)
[Dimension](../../java/awt/Dimension.html "class in java.awt")
[size](../../java/awt/Component.html#size--)()
[String](../../java/lang/String.html "class in java.lang")
[toString](../../java/awt/Component.html#toString--)()
Returns a string representation of this component and its values.
void
[transferFocus](../../java/awt/Component.html#transferFocus--)()
Transfers the focus to the next component, as though this Component were the focus owner.
void
[transferFocusBackward](../../java/awt/Component.html#transferFocusBackward--)()
Transfers the focus to the previous component, as though this Component were the focus owner.
void
[transferFocusUpCycle](../../java/awt/Component.html#transferFocusUpCycle--)()
Transfers the focus up one focus traversal cycle.
void
[update](../../java/awt/Component.html#update-java.awt.Graphics-)([Graphics](../../java/awt/Graphics.html "class in java.awt") g)
Updates this component.
void
[validate](../../java/awt/Component.html#validate--)()
Validates this component.