JComponent (Java SE 15 & JDK 15) (original) (raw)

All Implemented Interfaces:

[ImageObserver](../../java/awt/image/ImageObserver.html "interface in java.awt.image"), [MenuContainer](../../java/awt/MenuContainer.html "interface in java.awt"), [Serializable](../../../java.base/java/io/Serializable.html "interface in java.io")

Direct Known Subclasses:

[AbstractButton](AbstractButton.html "class in javax.swing"), [BasicInternalFrameTitlePane](plaf/basic/BasicInternalFrameTitlePane.html "class in javax.swing.plaf.basic"), [Box](Box.html "class in javax.swing"), [Box.Filler](Box.Filler.html "class in javax.swing"), [JColorChooser](JColorChooser.html "class in javax.swing"), [JComboBox](JComboBox.html "class in javax.swing"), [JFileChooser](JFileChooser.html "class in javax.swing"), [JInternalFrame](JInternalFrame.html "class in javax.swing"), [JInternalFrame.JDesktopIcon](JInternalFrame.JDesktopIcon.html "class in javax.swing"), [JLabel](JLabel.html "class in javax.swing"), [JLayer](JLayer.html "class in javax.swing"), [JLayeredPane](JLayeredPane.html "class in javax.swing"), [JList](JList.html "class in javax.swing"), [JMenuBar](JMenuBar.html "class in javax.swing"), [JOptionPane](JOptionPane.html "class in javax.swing"), [JPanel](JPanel.html "class in javax.swing"), [JPopupMenu](JPopupMenu.html "class in javax.swing"), [JProgressBar](JProgressBar.html "class in javax.swing"), [JRootPane](JRootPane.html "class in javax.swing"), [JScrollBar](JScrollBar.html "class in javax.swing"), [JScrollPane](JScrollPane.html "class in javax.swing"), [JSeparator](JSeparator.html "class in javax.swing"), [JSlider](JSlider.html "class in javax.swing"), [JSpinner](JSpinner.html "class in javax.swing"), [JSplitPane](JSplitPane.html "class in javax.swing"), [JTabbedPane](JTabbedPane.html "class in javax.swing"), [JTable](JTable.html "class in javax.swing"), [JTableHeader](table/JTableHeader.html "class in javax.swing.table"), [JTextComponent](text/JTextComponent.html "class in javax.swing.text"), [JToolBar](JToolBar.html "class in javax.swing"), [JToolTip](JToolTip.html "class in javax.swing"), [JTree](JTree.html "class in javax.swing"), [JViewport](JViewport.html "class in javax.swing")


@JavaBean(defaultProperty="UIClassID") public abstract class JComponent extends Container implements Serializable

The base class for all Swing components except top-level containers. To use a component that inherits from JComponent, you must place the component in a containment hierarchy whose root is a top-level Swing container. Top-level Swing containers -- such as JFrame, JDialog, and JApplet -- are specialized components that provide a place for other Swing components to paint themselves. For an explanation of containment hierarchies, seeSwing Components and the Containment Hierarchy, a section in The Java Tutorial.

The JComponent class provides:

For more information on these subjects, see theSwing package description and The Java Tutorial sectionThe JComponent Class.

JComponent and its subclasses document default values for certain properties. For example, JTable documents the default row height as 16. Each JComponent subclass that has a ComponentUI will create theComponentUI as part of its constructor. In order to provide a particular look and feel eachComponentUI may set properties back on theJComponent that created it. For example, a custom look and feel may require JTables to have a row height of 24. The documented defaults are the value of a property BEFORE the ComponentUI has been installed. If you need a specific value for a particular property you should explicitly set it.

In release 1.4, the focus subsystem was rearchitected. For more information, see How to Use the Focus Subsystem, a section in The Java Tutorial.

Warning: Swing is not thread safe. For more information see Swing's Threading Policy.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans has been added to the java.beans package. Please see XMLEncoder.

Since:

1.2

See Also:

KeyStroke, Action, setBorder(javax.swing.border.Border), registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int), JOptionPane, setDebugGraphicsOptions(int), setToolTipText(java.lang.String), setAutoscrolls(boolean)

Nested Classes

Modifier and Type Class Description
class JComponent.AccessibleJComponent Inner class of JComponent used to provide default support for accessibility.

Fields

Modifier and Type Field Description
protected EventListenerList listenerList A list of event listeners for this component.
static String TOOL_TIP_TEXT_KEY The comment to display when the cursor is over the component, also known as a "value tip", "flyover help", or "flyover label".
protected ComponentUI ui The look and feel delegate for this component.
static int UNDEFINED_CONDITION Constant used by some of the APIs to mean that no condition is defined.
static int WHEN_ANCESTOR_OF_FOCUSED_COMPONENT Constant used for registerKeyboardAction that means that the command should be invoked when the receiving component is an ancestor of the focused component or is itself the focused component.
static int WHEN_FOCUSED Constant used for registerKeyboardAction that means that the command should be invoked when the component has the focus.
static int WHEN_IN_FOCUSED_WINDOW Constant used for registerKeyboardAction that means that the command should be invoked when the receiving component is in the window that has the focus or is itself the focused component.

Constructors

Constructor Description
JComponent() Default JComponent constructor.
Modifier and Type Method Description
void addAncestorListener​(AncestorListener listener) Registers listener so that it will receiveAncestorEvents when it or any of its ancestors move or are made visible or invisible.
void addNotify() Notifies this component that it now has a parent component.
void addVetoableChangeListener​(VetoableChangeListener listener) Adds a VetoableChangeListener to the listener list.
void computeVisibleRect​(Rectangle visibleRect) Returns the Component's "visible rect rectangle" - the intersection of the visible rectangles for this component and all of its ancestors.
boolean contains​(int x, int y) Gives the UI delegate an opportunity to define the precise shape of this component for the sake of mouse processing.
JToolTip createToolTip() Returns the instance of JToolTip that should be used to display the tooltip.
void disable() Deprecated.
void enable() Deprecated.
void firePropertyChange​(String propertyName, boolean oldValue, boolean newValue) Support for reporting bound property changes for boolean properties.
void firePropertyChange​(String propertyName, int oldValue, int newValue) Support for reporting bound property changes for integer properties.
protected void fireVetoableChange​(String propertyName,Object oldValue,Object newValue) Supports reporting constrained property changes.
ActionListener getActionForKeyStroke​(KeyStroke aKeyStroke) Returns the object that will perform the action registered for a given keystroke.
ActionMap getActionMap() Returns the ActionMap used to determine whatAction to fire for particular KeyStroke binding.
float getAlignmentX() Overrides Container.getAlignmentX to return the horizontal alignment.
float getAlignmentY() Overrides Container.getAlignmentY to return the vertical alignment.
AncestorListener[] getAncestorListeners() Returns an array of all the ancestor listeners registered on this component.
boolean getAutoscrolls() Gets the autoscrolls property.
int getBaseline​(int width, int height) Returns the baseline.
Component.BaselineResizeBehavior getBaselineResizeBehavior() Returns an enum indicating how the baseline of the component changes as the size changes.
Border getBorder() Returns the border of this component or null if no border is currently set.
Rectangle getBounds​(Rectangle rv) Stores the bounds of this component into "return value"rv and returns rv.
Object getClientProperty​(Object key) Returns the value of the property with the specified key.
protected Graphics getComponentGraphics​(Graphics g) Returns the graphics object used to paint this component.
JPopupMenu getComponentPopupMenu() Returns JPopupMenu that assigned for this component.
int getConditionForKeyStroke​(KeyStroke aKeyStroke) Returns the condition that determines whether a registered action occurs in response to the specified keystroke.
int getDebugGraphicsOptions() Returns the state of graphics debugging.
static Locale getDefaultLocale() Returns the default locale used to initialize each JComponent's locale property upon creation.
FontMetrics getFontMetrics​(Font font) Gets the FontMetrics for the specified Font.
Graphics getGraphics() Returns this component's graphics context, which lets you draw on a component.
int getHeight() Returns the current height of this component.
boolean getInheritsPopupMenu() Returns true if the JPopupMenu should be inherited from the parent.
InputMap getInputMap() Returns the InputMap that is used when the component has focus.
InputMap getInputMap​(int condition) Returns the InputMap that is used duringcondition.
InputVerifier getInputVerifier() Returns the input verifier for this component.
Insets getInsets() If a border has been set on this component, returns the border's insets; otherwise calls super.getInsets.
Insets getInsets​(Insets insets) Returns an Insets object containing this component's inset values.
<T extends EventListener>T[] getListeners​(Class listenerType) Returns an array of all the objects currently registered as _Foo_Listeners upon this JComponent.
Point getLocation​(Point rv) Stores the x,y origin of this component into "return value"rv and returns rv.
Dimension getMaximumSize() If the maximum size has been set to a non-null value just returns it.
Dimension getMinimumSize() If the minimum size has been set to a non-null value just returns it.
Component getNextFocusableComponent() Deprecated.
Point getPopupLocation​(MouseEvent event) Returns the preferred location to display the popup menu in this component's coordinate system.
Dimension getPreferredSize() If the preferredSize has been set to a non-null value just returns it.
KeyStroke[] getRegisteredKeyStrokes() Returns the KeyStrokes that will initiate registered actions.
JRootPane getRootPane() Returns the JRootPane ancestor for this component.
Dimension getSize​(Dimension rv) Stores the width/height of this component into "return value"rv and returns rv.
Point getToolTipLocation​(MouseEvent event) Returns the tooltip location in this component's coordinate system.
String getToolTipText() Returns the tooltip string that has been set withsetToolTipText.
String getToolTipText​(MouseEvent event) Returns the string to be used as the tooltip for event.
Container getTopLevelAncestor() Returns the top-level ancestor of this component (either the containing Window or Applet), or null if this component has not been added to any container.
TransferHandler getTransferHandler() Gets the transferHandler property.
ComponentUI getUI() Returns the look and feel delegate that renders this component.
String getUIClassID() Returns the UIDefaults key used to look up the name of the swing.plaf.ComponentUI class that defines the look and feel for this component.
boolean getVerifyInputWhenFocusTarget() Returns the value that indicates whether the input verifier for the current focus owner will be called before this component requests focus.
VetoableChangeListener[] getVetoableChangeListeners() Returns an array of all the vetoable change listeners registered on this component.
Rectangle getVisibleRect() Returns the Component's "visible rectangle" - the intersection of this component's visible rectangle,new Rectangle(0, 0, getWidth(), getHeight()), and all of its ancestors' visible rectangles.
int getWidth() Returns the current width of this component.
int getX() Returns the current x coordinate of the component's origin.
int getY() Returns the current y coordinate of the component's origin.
void grabFocus() Requests that this Component get the input focus, and that this Component's top-level ancestor become the focused Window.
void hide() Deprecated.
boolean isDoubleBuffered() Returns whether this component should use a buffer to paint.
static boolean isLightweightComponent​(Component c) Returns true if this component is lightweight, that is, if it doesn't have a native window system peer.
boolean isManagingFocus() Deprecated.
boolean isOpaque() Returns true if this component is completely opaque.
boolean isOptimizedDrawingEnabled() Returns true if this component tiles its children -- that is, if it can guarantee that the children will not overlap.
boolean isPaintingForPrint() Returns true if the current painting operation on this component is part of a print operation.
protected boolean isPaintingOrigin() Returns true if a paint triggered on a child component should cause painting to originate from this Component, or one of its ancestors.
boolean isPaintingTile() Returns true if the component is currently painting a tile.
boolean isRequestFocusEnabled() Returns true if this JComponent should get focus; otherwise returns false.
boolean isValidateRoot() If this method returns true, revalidate calls by descendants of this component will cause the entire tree beginning with this root to be validated.
void paint​(Graphics g) Invoked by Swing to draw components.
protected void paintBorder​(Graphics g) Paints the component's border.
protected void paintChildren​(Graphics g) Paints this component's children.
protected void paintComponent​(Graphics g) Calls the UI delegate's paint method, if the UI delegate is non-null.
void paintImmediately​(int x, int y, int w, int h) Paints the specified region in this component and all of its descendants that overlap the region, immediately.
void paintImmediately​(Rectangle r) Paints the specified region now.
protected String paramString() Returns a string representation of this JComponent.
void print​(Graphics g) Invoke this method to print the component to the specifiedGraphics.
void printAll​(Graphics g) Invoke this method to print the component.
protected void printBorder​(Graphics g) Prints the component's border.
protected void printChildren​(Graphics g) Prints this component's children.
protected void printComponent​(Graphics g) This is invoked during a printing operation.
protected void processComponentKeyEvent​(KeyEvent e) Processes any key events that the component itself recognizes.
protected boolean processKeyBinding​(KeyStroke ks,KeyEvent e, int condition, boolean pressed) Invoked to process the key bindings for ks as the result of the KeyEvent e.
protected void processKeyEvent​(KeyEvent e) Overrides processKeyEvent to process events.
protected void processMouseEvent​(MouseEvent e) Processes mouse events occurring on this component by dispatching them to any registeredMouseListener objects, refer toComponent.processMouseEvent(MouseEvent) for a complete description of this method.
protected void processMouseMotionEvent​(MouseEvent e) Processes mouse motion events, such as MouseEvent.MOUSE_DRAGGED.
void putClientProperty​(Object key,Object value) Adds an arbitrary key/value "client property" to this component.
void registerKeyboardAction​(ActionListener anAction,String aCommand,KeyStroke aKeyStroke, int aCondition) This method is now obsolete, please use a combination ofgetActionMap() and getInputMap() for similar behavior.
void registerKeyboardAction​(ActionListener anAction,KeyStroke aKeyStroke, int aCondition) This method is now obsolete, please use a combination ofgetActionMap() and getInputMap() for similar behavior.
void removeAncestorListener​(AncestorListener listener) Unregisters listener so that it will no longer receiveAncestorEvents.
void removeNotify() Notifies this component that it no longer has a parent component.
void removeVetoableChangeListener​(VetoableChangeListener listener) Removes a VetoableChangeListener from the listener list.
void repaint​(long tm, int x, int y, int width, int height) Adds the specified region to the dirty region list if the component is showing.
void repaint​(Rectangle r) Adds the specified region to the dirty region list if the component is showing.
boolean requestDefaultFocus() Deprecated.
void requestFocus() Requests that this Component gets the input focus.
boolean requestFocus​(boolean temporary) Requests that this Component gets the input focus.
boolean requestFocusInWindow() Requests that this Component gets the input focus.
protected boolean requestFocusInWindow​(boolean temporary) Requests that this Component gets the input focus.
void resetKeyboardActions() Unregisters all the bindings in the first tier InputMaps and ActionMap.
void reshape​(int x, int y, int w, int h) Deprecated.
void revalidate() Supports deferred automatic layout.
void scrollRectToVisible​(Rectangle aRect) Forwards the scrollRectToVisible() message to theJComponent's parent.
void setActionMap​(ActionMap am) Sets the ActionMap to am.
void setAlignmentX​(float alignmentX) Sets the horizontal alignment.
void setAlignmentY​(float alignmentY) Sets the vertical alignment.
void setAutoscrolls​(boolean autoscrolls) Sets the autoscrolls property.
void setBackground​(Color bg) Sets the background color of this component.
void setBorder​(Border border) Sets the border of this component.
void setComponentPopupMenu​(JPopupMenu popup) Sets the JPopupMenu for this JComponent.
void setDebugGraphicsOptions​(int debugOptions) Enables or disables diagnostic information about every graphics operation performed within the component or one of its children.
static void setDefaultLocale​(Locale l) Sets the default locale used to initialize each JComponent's locale property upon creation.
void setDoubleBuffered​(boolean aFlag) Sets whether this component should use a buffer to paint.
void setEnabled​(boolean enabled) Sets whether or not this component is enabled.
void setFocusTraversalKeys​(int id,Set<? extends AWTKeyStroke> keystrokes) Sets the focus traversal keys for a given traversal operation for this Component.
void setFont​(Font font) Sets the font for this component.
void setForeground​(Color fg) Sets the foreground color of this component.
void setInheritsPopupMenu​(boolean value) Sets whether or not getComponentPopupMenu should delegate to the parent if this component does not have a JPopupMenu assigned to it.
void setInputMap​(int condition,InputMap map) Sets the InputMap to use under the conditioncondition tomap.
void setInputVerifier​(InputVerifier inputVerifier) Sets the input verifier for this component.
void setMaximumSize​(Dimension maximumSize) Sets the maximum size of this component to a constant value.
void setMinimumSize​(Dimension minimumSize) Sets the minimum size of this component to a constant value.
void setNextFocusableComponent​(Component aComponent) Deprecated.
void setOpaque​(boolean isOpaque) If true the component paints every pixel within its bounds.
void setPreferredSize​(Dimension preferredSize) Sets the preferred size of this component.
void setRequestFocusEnabled​(boolean requestFocusEnabled) Provides a hint as to whether or not this JComponent should get focus.
void setToolTipText​(String text) Registers the text to display in a tool tip.
void setTransferHandler​(TransferHandler newHandler) Sets the TransferHandler, which provides support for transfer of data into and out of this component via cut/copy/paste and drag and drop.
protected void setUI​(ComponentUI newUI) Sets the look and feel delegate for this component.
void setVerifyInputWhenFocusTarget​(boolean verifyInputWhenFocusTarget) Sets the value to indicate whether input verifier for the current focus owner will be called before this component requests focus.
void setVisible​(boolean aFlag) Makes the component visible or invisible.
void unregisterKeyboardAction​(KeyStroke aKeyStroke) This method is now obsolete.
void update​(Graphics g) Calls paint.
void updateUI() Resets the UI property to a value from the current look and feel.

Methods declared in class java.awt.Container

[add](../../java/awt/Container.html#add%28java.awt.Component%29), [add](../../java/awt/Container.html#add%28java.awt.Component,int%29), [add](../../java/awt/Container.html#add%28java.awt.Component,java.lang.Object%29), [add](../../java/awt/Container.html#add%28java.awt.Component,java.lang.Object,int%29), [add](../../java/awt/Container.html#add%28java.lang.String,java.awt.Component%29), [addContainerListener](../../java/awt/Container.html#addContainerListener%28java.awt.event.ContainerListener%29), [addImpl](../../java/awt/Container.html#addImpl%28java.awt.Component,java.lang.Object,int%29), [addPropertyChangeListener](../../java/awt/Container.html#addPropertyChangeListener%28java.beans.PropertyChangeListener%29), [addPropertyChangeListener](../../java/awt/Container.html#addPropertyChangeListener%28java.lang.String,java.beans.PropertyChangeListener%29), [applyComponentOrientation](../../java/awt/Container.html#applyComponentOrientation%28java.awt.ComponentOrientation%29), [areFocusTraversalKeysSet](../../java/awt/Container.html#areFocusTraversalKeysSet%28int%29), [countComponents](../../java/awt/Container.html#countComponents%28%29), [deliverEvent](../../java/awt/Container.html#deliverEvent%28java.awt.Event%29), [doLayout](../../java/awt/Container.html#doLayout%28%29), [findComponentAt](../../java/awt/Container.html#findComponentAt%28int,int%29), [findComponentAt](../../java/awt/Container.html#findComponentAt%28java.awt.Point%29), [getComponent](../../java/awt/Container.html#getComponent%28int%29), [getComponentAt](../../java/awt/Container.html#getComponentAt%28int,int%29), [getComponentAt](../../java/awt/Container.html#getComponentAt%28java.awt.Point%29), [getComponentCount](../../java/awt/Container.html#getComponentCount%28%29), [getComponents](../../java/awt/Container.html#getComponents%28%29), [getComponentZOrder](../../java/awt/Container.html#getComponentZOrder%28java.awt.Component%29), [getContainerListeners](../../java/awt/Container.html#getContainerListeners%28%29), [getFocusTraversalKeys](../../java/awt/Container.html#getFocusTraversalKeys%28int%29), [getFocusTraversalPolicy](../../java/awt/Container.html#getFocusTraversalPolicy%28%29), [getLayout](../../java/awt/Container.html#getLayout%28%29), [getMousePosition](../../java/awt/Container.html#getMousePosition%28boolean%29), [insets](../../java/awt/Container.html#insets%28%29), [invalidate](../../java/awt/Container.html#invalidate%28%29), [isAncestorOf](../../java/awt/Container.html#isAncestorOf%28java.awt.Component%29), [isFocusCycleRoot](../../java/awt/Container.html#isFocusCycleRoot%28%29), [isFocusCycleRoot](../../java/awt/Container.html#isFocusCycleRoot%28java.awt.Container%29), [isFocusTraversalPolicyProvider](../../java/awt/Container.html#isFocusTraversalPolicyProvider%28%29), [isFocusTraversalPolicySet](../../java/awt/Container.html#isFocusTraversalPolicySet%28%29), [layout](../../java/awt/Container.html#layout%28%29), [list](../../java/awt/Container.html#list%28java.io.PrintStream,int%29), [list](../../java/awt/Container.html#list%28java.io.PrintWriter,int%29), [locate](../../java/awt/Container.html#locate%28int,int%29), [minimumSize](../../java/awt/Container.html#minimumSize%28%29), [paintComponents](../../java/awt/Container.html#paintComponents%28java.awt.Graphics%29), [preferredSize](../../java/awt/Container.html#preferredSize%28%29), [printComponents](../../java/awt/Container.html#printComponents%28java.awt.Graphics%29), [processContainerEvent](../../java/awt/Container.html#processContainerEvent%28java.awt.event.ContainerEvent%29), [processEvent](../../java/awt/Container.html#processEvent%28java.awt.AWTEvent%29), [remove](../../java/awt/Container.html#remove%28int%29), [remove](../../java/awt/Container.html#remove%28java.awt.Component%29), [removeAll](../../java/awt/Container.html#removeAll%28%29), [removeContainerListener](../../java/awt/Container.html#removeContainerListener%28java.awt.event.ContainerListener%29), [setComponentZOrder](../../java/awt/Container.html#setComponentZOrder%28java.awt.Component,int%29), [setFocusCycleRoot](../../java/awt/Container.html#setFocusCycleRoot%28boolean%29), [setFocusTraversalPolicy](../../java/awt/Container.html#setFocusTraversalPolicy%28java.awt.FocusTraversalPolicy%29), [setFocusTraversalPolicyProvider](../../java/awt/Container.html#setFocusTraversalPolicyProvider%28boolean%29), [setLayout](../../java/awt/Container.html#setLayout%28java.awt.LayoutManager%29), [transferFocusDownCycle](../../java/awt/Container.html#transferFocusDownCycle%28%29), [validate](../../java/awt/Container.html#validate%28%29), [validateTree](../../java/awt/Container.html#validateTree%28%29)

Methods declared in class java.awt.Component

[action](../../java/awt/Component.html#action%28java.awt.Event,java.lang.Object%29), [add](../../java/awt/Component.html#add%28java.awt.PopupMenu%29), [addComponentListener](../../java/awt/Component.html#addComponentListener%28java.awt.event.ComponentListener%29), [addFocusListener](../../java/awt/Component.html#addFocusListener%28java.awt.event.FocusListener%29), [addHierarchyBoundsListener](../../java/awt/Component.html#addHierarchyBoundsListener%28java.awt.event.HierarchyBoundsListener%29), [addHierarchyListener](../../java/awt/Component.html#addHierarchyListener%28java.awt.event.HierarchyListener%29), [addInputMethodListener](../../java/awt/Component.html#addInputMethodListener%28java.awt.event.InputMethodListener%29), [addKeyListener](../../java/awt/Component.html#addKeyListener%28java.awt.event.KeyListener%29), [addMouseListener](../../java/awt/Component.html#addMouseListener%28java.awt.event.MouseListener%29), [addMouseMotionListener](../../java/awt/Component.html#addMouseMotionListener%28java.awt.event.MouseMotionListener%29), [addMouseWheelListener](../../java/awt/Component.html#addMouseWheelListener%28java.awt.event.MouseWheelListener%29), [bounds](../../java/awt/Component.html#bounds%28%29), [checkImage](../../java/awt/Component.html#checkImage%28java.awt.Image,int,int,java.awt.image.ImageObserver%29), [checkImage](../../java/awt/Component.html#checkImage%28java.awt.Image,java.awt.image.ImageObserver%29), [coalesceEvents](../../java/awt/Component.html#coalesceEvents%28java.awt.AWTEvent,java.awt.AWTEvent%29), [contains](../../java/awt/Component.html#contains%28java.awt.Point%29), [createImage](../../java/awt/Component.html#createImage%28int,int%29), [createImage](../../java/awt/Component.html#createImage%28java.awt.image.ImageProducer%29), [createVolatileImage](../../java/awt/Component.html#createVolatileImage%28int,int%29), [createVolatileImage](../../java/awt/Component.html#createVolatileImage%28int,int,java.awt.ImageCapabilities%29), [disableEvents](../../java/awt/Component.html#disableEvents%28long%29), [dispatchEvent](../../java/awt/Component.html#dispatchEvent%28java.awt.AWTEvent%29), [enable](../../java/awt/Component.html#enable%28boolean%29), [enableEvents](../../java/awt/Component.html#enableEvents%28long%29), [enableInputMethods](../../java/awt/Component.html#enableInputMethods%28boolean%29), [firePropertyChange](../../java/awt/Component.html#firePropertyChange%28java.lang.String,byte,byte%29), [firePropertyChange](../../java/awt/Component.html#firePropertyChange%28java.lang.String,char,char%29), [firePropertyChange](../../java/awt/Component.html#firePropertyChange%28java.lang.String,double,double%29), [firePropertyChange](../../java/awt/Component.html#firePropertyChange%28java.lang.String,float,float%29), [firePropertyChange](../../java/awt/Component.html#firePropertyChange%28java.lang.String,long,long%29), [firePropertyChange](../../java/awt/Component.html#firePropertyChange%28java.lang.String,short,short%29), [firePropertyChange](../../java/awt/Component.html#firePropertyChange%28java.lang.String,java.lang.Object,java.lang.Object%29), [getAccessibleContext](../../java/awt/Component.html#getAccessibleContext%28%29), [getBackground](../../java/awt/Component.html#getBackground%28%29), [getBounds](../../java/awt/Component.html#getBounds%28%29), [getColorModel](../../java/awt/Component.html#getColorModel%28%29), [getComponentListeners](../../java/awt/Component.html#getComponentListeners%28%29), [getComponentOrientation](../../java/awt/Component.html#getComponentOrientation%28%29), [getCursor](../../java/awt/Component.html#getCursor%28%29), [getDropTarget](../../java/awt/Component.html#getDropTarget%28%29), [getFocusCycleRootAncestor](../../java/awt/Component.html#getFocusCycleRootAncestor%28%29), [getFocusListeners](../../java/awt/Component.html#getFocusListeners%28%29), [getFocusTraversalKeysEnabled](../../java/awt/Component.html#getFocusTraversalKeysEnabled%28%29), [getFont](../../java/awt/Component.html#getFont%28%29), [getForeground](../../java/awt/Component.html#getForeground%28%29), [getGraphicsConfiguration](../../java/awt/Component.html#getGraphicsConfiguration%28%29), [getHierarchyBoundsListeners](../../java/awt/Component.html#getHierarchyBoundsListeners%28%29), [getHierarchyListeners](../../java/awt/Component.html#getHierarchyListeners%28%29), [getIgnoreRepaint](../../java/awt/Component.html#getIgnoreRepaint%28%29), [getInputContext](../../java/awt/Component.html#getInputContext%28%29), [getInputMethodListeners](../../java/awt/Component.html#getInputMethodListeners%28%29), [getInputMethodRequests](../../java/awt/Component.html#getInputMethodRequests%28%29), [getKeyListeners](../../java/awt/Component.html#getKeyListeners%28%29), [getLocale](../../java/awt/Component.html#getLocale%28%29), [getLocation](../../java/awt/Component.html#getLocation%28%29), [getLocationOnScreen](../../java/awt/Component.html#getLocationOnScreen%28%29), [getMouseListeners](../../java/awt/Component.html#getMouseListeners%28%29), [getMouseMotionListeners](../../java/awt/Component.html#getMouseMotionListeners%28%29), [getMousePosition](../../java/awt/Component.html#getMousePosition%28%29), [getMouseWheelListeners](../../java/awt/Component.html#getMouseWheelListeners%28%29), [getName](../../java/awt/Component.html#getName%28%29), [getParent](../../java/awt/Component.html#getParent%28%29), [getPropertyChangeListeners](../../java/awt/Component.html#getPropertyChangeListeners%28%29), [getPropertyChangeListeners](../../java/awt/Component.html#getPropertyChangeListeners%28java.lang.String%29), [getSize](../../java/awt/Component.html#getSize%28%29), [getToolkit](../../java/awt/Component.html#getToolkit%28%29), [getTreeLock](../../java/awt/Component.html#getTreeLock%28%29), [gotFocus](../../java/awt/Component.html#gotFocus%28java.awt.Event,java.lang.Object%29), [handleEvent](../../java/awt/Component.html#handleEvent%28java.awt.Event%29), [hasFocus](../../java/awt/Component.html#hasFocus%28%29), [imageUpdate](../../java/awt/Component.html#imageUpdate%28java.awt.Image,int,int,int,int,int%29), [inside](../../java/awt/Component.html#inside%28int,int%29), [isBackgroundSet](../../java/awt/Component.html#isBackgroundSet%28%29), [isCursorSet](../../java/awt/Component.html#isCursorSet%28%29), [isDisplayable](../../java/awt/Component.html#isDisplayable%28%29), [isEnabled](../../java/awt/Component.html#isEnabled%28%29), [isFocusable](../../java/awt/Component.html#isFocusable%28%29), [isFocusOwner](../../java/awt/Component.html#isFocusOwner%28%29), [isFocusTraversable](../../java/awt/Component.html#isFocusTraversable%28%29), [isFontSet](../../java/awt/Component.html#isFontSet%28%29), [isForegroundSet](../../java/awt/Component.html#isForegroundSet%28%29), [isLightweight](../../java/awt/Component.html#isLightweight%28%29), [isMaximumSizeSet](../../java/awt/Component.html#isMaximumSizeSet%28%29), [isMinimumSizeSet](../../java/awt/Component.html#isMinimumSizeSet%28%29), [isPreferredSizeSet](../../java/awt/Component.html#isPreferredSizeSet%28%29), [isShowing](../../java/awt/Component.html#isShowing%28%29), [isValid](../../java/awt/Component.html#isValid%28%29), [isVisible](../../java/awt/Component.html#isVisible%28%29), [keyDown](../../java/awt/Component.html#keyDown%28java.awt.Event,int%29), [keyUp](../../java/awt/Component.html#keyUp%28java.awt.Event,int%29), [list](../../java/awt/Component.html#list%28%29), [list](../../java/awt/Component.html#list%28java.io.PrintStream%29), [list](../../java/awt/Component.html#list%28java.io.PrintWriter%29), [location](../../java/awt/Component.html#location%28%29), [lostFocus](../../java/awt/Component.html#lostFocus%28java.awt.Event,java.lang.Object%29), [mouseDown](../../java/awt/Component.html#mouseDown%28java.awt.Event,int,int%29), [mouseDrag](../../java/awt/Component.html#mouseDrag%28java.awt.Event,int,int%29), [mouseEnter](../../java/awt/Component.html#mouseEnter%28java.awt.Event,int,int%29), [mouseExit](../../java/awt/Component.html#mouseExit%28java.awt.Event,int,int%29), [mouseMove](../../java/awt/Component.html#mouseMove%28java.awt.Event,int,int%29), [mouseUp](../../java/awt/Component.html#mouseUp%28java.awt.Event,int,int%29), [move](../../java/awt/Component.html#move%28int,int%29), [nextFocus](../../java/awt/Component.html#nextFocus%28%29), [paintAll](../../java/awt/Component.html#paintAll%28java.awt.Graphics%29), [postEvent](../../java/awt/Component.html#postEvent%28java.awt.Event%29), [prepareImage](../../java/awt/Component.html#prepareImage%28java.awt.Image,int,int,java.awt.image.ImageObserver%29), [prepareImage](../../java/awt/Component.html#prepareImage%28java.awt.Image,java.awt.image.ImageObserver%29), [processComponentEvent](../../java/awt/Component.html#processComponentEvent%28java.awt.event.ComponentEvent%29), [processFocusEvent](../../java/awt/Component.html#processFocusEvent%28java.awt.event.FocusEvent%29), [processHierarchyBoundsEvent](../../java/awt/Component.html#processHierarchyBoundsEvent%28java.awt.event.HierarchyEvent%29), [processHierarchyEvent](../../java/awt/Component.html#processHierarchyEvent%28java.awt.event.HierarchyEvent%29), [processInputMethodEvent](../../java/awt/Component.html#processInputMethodEvent%28java.awt.event.InputMethodEvent%29), [processMouseWheelEvent](../../java/awt/Component.html#processMouseWheelEvent%28java.awt.event.MouseWheelEvent%29), [remove](../../java/awt/Component.html#remove%28java.awt.MenuComponent%29), [removeComponentListener](../../java/awt/Component.html#removeComponentListener%28java.awt.event.ComponentListener%29), [removeFocusListener](../../java/awt/Component.html#removeFocusListener%28java.awt.event.FocusListener%29), [removeHierarchyBoundsListener](../../java/awt/Component.html#removeHierarchyBoundsListener%28java.awt.event.HierarchyBoundsListener%29), [removeHierarchyListener](../../java/awt/Component.html#removeHierarchyListener%28java.awt.event.HierarchyListener%29), [removeInputMethodListener](../../java/awt/Component.html#removeInputMethodListener%28java.awt.event.InputMethodListener%29), [removeKeyListener](../../java/awt/Component.html#removeKeyListener%28java.awt.event.KeyListener%29), [removeMouseListener](../../java/awt/Component.html#removeMouseListener%28java.awt.event.MouseListener%29), [removeMouseMotionListener](../../java/awt/Component.html#removeMouseMotionListener%28java.awt.event.MouseMotionListener%29), [removeMouseWheelListener](../../java/awt/Component.html#removeMouseWheelListener%28java.awt.event.MouseWheelListener%29), [removePropertyChangeListener](../../java/awt/Component.html#removePropertyChangeListener%28java.beans.PropertyChangeListener%29), [removePropertyChangeListener](../../java/awt/Component.html#removePropertyChangeListener%28java.lang.String,java.beans.PropertyChangeListener%29), [repaint](../../java/awt/Component.html#repaint%28%29), [repaint](../../java/awt/Component.html#repaint%28int,int,int,int%29), [repaint](../../java/awt/Component.html#repaint%28long%29), [requestFocus](../../java/awt/Component.html#requestFocus%28boolean,java.awt.event.FocusEvent.Cause%29), [requestFocus](../../java/awt/Component.html#requestFocus%28java.awt.event.FocusEvent.Cause%29), [requestFocusInWindow](../../java/awt/Component.html#requestFocusInWindow%28java.awt.event.FocusEvent.Cause%29), [resize](../../java/awt/Component.html#resize%28int,int%29), [resize](../../java/awt/Component.html#resize%28java.awt.Dimension%29), [setBounds](../../java/awt/Component.html#setBounds%28int,int,int,int%29), [setBounds](../../java/awt/Component.html#setBounds%28java.awt.Rectangle%29), [setComponentOrientation](../../java/awt/Component.html#setComponentOrientation%28java.awt.ComponentOrientation%29), [setCursor](../../java/awt/Component.html#setCursor%28java.awt.Cursor%29), [setDropTarget](../../java/awt/Component.html#setDropTarget%28java.awt.dnd.DropTarget%29), [setFocusable](../../java/awt/Component.html#setFocusable%28boolean%29), [setFocusTraversalKeysEnabled](../../java/awt/Component.html#setFocusTraversalKeysEnabled%28boolean%29), [setIgnoreRepaint](../../java/awt/Component.html#setIgnoreRepaint%28boolean%29), [setLocale](../../java/awt/Component.html#setLocale%28java.util.Locale%29), [setLocation](../../java/awt/Component.html#setLocation%28int,int%29), [setLocation](../../java/awt/Component.html#setLocation%28java.awt.Point%29), [setMixingCutoutShape](../../java/awt/Component.html#setMixingCutoutShape%28java.awt.Shape%29), [setName](../../java/awt/Component.html#setName%28java.lang.String%29), [setSize](../../java/awt/Component.html#setSize%28int,int%29), [setSize](../../java/awt/Component.html#setSize%28java.awt.Dimension%29), [show](../../java/awt/Component.html#show%28%29), [show](../../java/awt/Component.html#show%28boolean%29), [size](../../java/awt/Component.html#size%28%29), [toString](../../java/awt/Component.html#toString%28%29), [transferFocus](../../java/awt/Component.html#transferFocus%28%29), [transferFocusBackward](../../java/awt/Component.html#transferFocusBackward%28%29), [transferFocusUpCycle](../../java/awt/Component.html#transferFocusUpCycle%28%29)