java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
public abstract class JComponent extends Container
| Constructor Summary | |
|---|---|
JComponent()
Default JComponent constructor. | 
|
| Method Summary | |
|---|---|
 int | 
getHeight()
Returns the current height of this component.  | 
 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 | 
setBackground(Color bg)
Sets the background color of this component.  | 
 void | 
setEnabled(boolean enabled)
Sets whether or not this component is enabled.  | 
 void | 
setFont(Font font)
Sets the font for this component.  | 
 void | 
setForeground(Color fg)
Sets the foreground color of this component.  | 
 void | 
setVisible(boolean aFlag)
Makes the component visible or invisible.  |