A component is an object having a graphical representation that can be displayed on the screen and that can interact with the user. Examples of components are the buttons, checkboxes, and scrollbars of a typical graphical user interface.
字段摘要 | |
---|---|
String |
background
Sets the background color of this component. |
String |
componentOrientation
Sets the language-sensitive orientation that is to be used to order the elements or text within this component. |
String |
cursor
Sets the cursor image to the specified cursor. |
String |
enabled
Enables or disables this component, depending on the value of the parameter b . |
String |
focusTraversalKeysEnabled
Sets whether focus traversal keys are enabled for this Component. |
String |
focusable
Sets the focusable state of this Component to the specified value. |
String |
font
Sets the font of this component. |
String |
foreground
Sets the foreground color of this component. |
String |
ignoreRepaint
Sets whether or not paint messages received from the operating system should be ignored. |
String |
location
Moves this component to a new location. |
String |
maximumSize
Sets the maximum size of this component to a constant value. |
String |
minimumSize
Sets the minimum size of this component to a constant value. |
String |
name
|
String |
preferredSize
Sets the preferred size of this component to a constant value. |
String |
size
Resizes this component so that it has width width and height height . |
String |
visible
Shows or hides this component depending on the value of parameter b . |
方法摘要 |
---|
子事物摘要 | |
---|---|
|
BorderLayoutConstraint
|
|
ComponentListeners
Adds the specified component listener to receive component events from this component. |
|
DropTarget
The DropTarget is associated with a Component when that Component wishes to accept drops during Drag and Drop operations. |
|
FocusListeners
|
|
GridBagConstraints
The GridBagConstraints class specifies constraints for components that are laid out using the GridBagLayout class. |
|
HierarchyBoundsListeners
|
|
HierarchyListeners
|
|
InputMethodListeners
|
|
KeyListeners
|
|
MouseListeners
|
|
MouseMotionListeners
|
|
MouseWheelListeners
|
|
PropertyChangeListeners
|
字段详细信息 |
---|
Sets the background color of this component.
Sets the language-sensitive orientation that is to be used to order the elements or text within this component.
Sets the cursor image to the specified cursor.
Enables or disables this component, depending on the value of the parameter b
.
Sets whether focus traversal keys are enabled for this Component.
Sets the focusable state of this Component to the specified value.
Sets the font of this component.
Sets the foreground color of this component.
Sets whether or not paint messages received from the operating system should be ignored.
Moves this component to a new location.
Sets the maximum size of this component to a constant value.
Sets the minimum size of this component to a constant value.
Sets the preferred size of this component to a constant value.
Resizes this component so that it has width width
and height height
.
Shows or hides this component depending on the value of parameter b
.
方法详细信息 |
---|
子事物详细信息 |
---|
Adds the specified component listener to receive component events from this component.
The DropTarget
is associated with a Component
when that Component
wishes to accept drops during Drag and Drop operations.
Each DropTarget
is associated with a FlavorMap
. The default FlavorMap
hereafter designates the FlavorMap
returned by SystemFlavorMap.getDefaultFlavorMap()
.
The GridBagConstraints
class specifies constraints for components that are laid out using the GridBagLayout
class.