|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
Safe: 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, see
Swing Components and the Containment Hierarchy,
a section in The Java Tutorial.
The JComponent class provides:
javax.swing.plaf.ComponentUI.
See How
to Set the Look and Feel
in The Java Tutorial
for more information.
JComponent contains all of the methods in the
Accessible interface,
but it doesn't actually implement the interface. That is the
responsibility of the individual classes
that extend JComponent.
putClientProperty(java.lang.Object, java.lang.Object)
and getClientProperty(java.lang.Object) methods,
you can associate name-object pairs
with any object that descends from JComponent.
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 JavaBeansTM
has been added to the java.beans package.
Please see java.beans.XMLEncoder.
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),
Serialized Form| Field Summary | |
(package private) Rectangle |
_bounds
|
protected AccessibleContext |
accessibleContext
The AccessibleContext associated with this
JComponent. |
private ActionMap |
actionMap
ActionMap. |
private static int |
ACTIONMAP_CREATED
|
private Float |
alignmentX
|
private Float |
alignmentY
|
private static int |
ANCESTOR_INPUTMAP_CREATED
|
private static int |
ANCESTOR_USING_BUFFER
|
private InputMap |
ancestorInputMap
Used for WHEN_ANCESTOR_OF_FOCUSED_COMPONENT bindings. |
private AncestorNotifier |
ancestorNotifier
|
private Autoscroller |
autoscroller
|
private javax.swing.border.Border |
border
|
private SwingPropertyChangeSupport |
changeSupport
|
private static boolean |
checkedSuppressDropSupport
Indiciates if we've checked the system property for suppressing drop support. |
private Hashtable |
clientProperties
|
private static int |
COMPLETELY_OBSCURED
|
private static int |
CREATED_DOUBLE_BUFFER
|
private static int |
CREATED_VOLATILE_DOUBLE_BUFFER
|
private static String |
defaultLocale
Key used to store the default locale in an AppContext |
private int |
flags
|
private static int |
FOCUS_INPUTMAP_CREATED
|
private InputMap |
focusInputMap
Used for WHEN_FOCUSED bindings. |
private static String |
htmlKey
|
private Object |
htmlView
|
private InputVerifier |
inputVerifier
|
private static int |
IS_DOUBLE_BUFFERED
Private flags |
private static int |
IS_OPAQUE
|
private static int |
IS_PAINTING_TILE
|
private static int |
IS_PRINTING
|
private static int |
IS_PRINTING_ALL
|
private static int |
IS_REPAINTING
|
private static int |
KEY_EVENTS_ENABLED
|
private static String |
KEYBOARD_BINDINGS_KEY
The key used by JComponent to access keyboard bindings. |
protected EventListenerList |
listenerList
A list of event listeners for this component. |
private static Set |
managingFocusBackwardTraversalKeys
Keys to use for backward focus traversal when the JComponent is managing focus. |
private static Set |
managingFocusForwardTraversalKeys
Keys to use for forward focus traversal when the JComponent is managing focus. |
private Dimension |
maximumSize
|
private Dimension |
minimumSize
|
private static String |
NEXT_FOCUS
|
private static int |
NOT_OBSCURED
|
private Rectangle |
paintImmediatelyClip
|
(package private) Component |
paintingChild
Set in _paintImmediately. |
private static int |
PARTIALLY_OBSCURED
|
private Dimension |
preferredSize
|
private static Hashtable |
readObjectCallbacks
|
private static int |
REQUEST_FOCUS_DISABLED
|
private static int |
RESERVED_1
|
private static int |
RESERVED_2
|
private static int |
RESERVED_3
|
private static int |
RESERVED_4
|
private static int |
RESERVED_5
|
private static int |
RESERVED_6
|
private static boolean |
suppressDropSupport
Indicates if we should register a DropTarget for a
non-null TransferHandler. |
private Rectangle |
tmpRect
|
static String |
TOOL_TIP_TEXT_KEY
Suppressed: The comment to display when the cursor is over the component, also known as a "value tip", "flyover help", or "flyover label". |
private TransferHandler |
transfer
|
protected javax.swing.plaf.ComponentUI |
ui
The look and feel delegate for this component. |
private static String |
uiClassID
|
static int |
UNDEFINED_CONDITION
Enabled: Constant used by some of the APIs to mean that no condition is defined. |
private boolean |
verifyInputWhenFocusTarget
|
private java.beans.VetoableChangeSupport |
vetoableChangeSupport
|
static int |
WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
Enabled: 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
Enabled: Constant used for registerKeyboardAction that
means that the command should be invoked when
the component has the focus. |
static int |
WHEN_IN_FOCUSED_WINDOW
Enabled: 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. |
private static String |
WHEN_IN_FOCUSED_WINDOW_BINDINGS
An array of KeyStrokes used for
WHEN_IN_FOCUSED_WINDOW are stashed
in the client properties under this string. |
private static int |
WIF_INPUTMAP_CREATED
|
private ComponentInputMap |
windowInputMap
Used for WHEN_IN_FOCUSED_KEY bindings. |
private static int |
WRITE_OBJ_COUNTER_FIRST
Bits 14-21 are used to handle nested writeObject calls. |
private static int |
WRITE_OBJ_COUNTER_LAST
|
| Fields inherited from class java.awt.Container |
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Constructor Summary | |
JComponent()
Enabled: Default JComponent constructor. |
|
| Method Summary | |
(package private) void |
_paintImmediately(int x,
int y,
int w,
int h)
|
void |
addAncestorListener(AncestorListener listener)
Suppressed: Registers listener so that it will receive
AncestorEvents when it or any of its ancestors
move or are made visible or invisible. |
void |
addNotify()
Suppressed: Notifies this component that it now has a parent component. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Suppressed: Adds a PropertyChangeListener to the listener list. |
void |
addPropertyChangeListener(String propertyName,
java.beans.PropertyChangeListener listener)
Suppressed: Adds a PropertyChangeListener for a specific property. |
void |
addVetoableChangeListener(java.beans.VetoableChangeListener listener)
Suppressed: Adds a VetoableChangeListener to the listener list. |
private void |
adjustPaintFlags()
|
(package private) boolean |
alwaysOnTop()
Returns whether this component should be guaranteed to be on top. |
(package private) boolean |
checkIfChildObscuredBySibling()
Returns true, which implies that before checking if a child should be painted it is first check that the child is not obscured by another sibling. |
(package private) void |
componentInputMapChanged(ComponentInputMap inputMap)
Invoked from ComponentInputMap when its bindings change. |
(package private) static void |
computeVisibleRect(Component c,
Rectangle visibleRect)
Returns the Component's "visible rect rectangle" - the
intersection of the visible rectangles for the component c
and all of its ancestors. |
void |
computeVisibleRect(Rectangle visibleRect)
Suppressed: Returns the Component's "visible rect rectangle" - the
intersection of the visible rectangles for this component
and all of its ancestors. |
(package private) void |
compWriteObjectNotify()
|
boolean |
contains(int x,
int y)
Enabled: Gives the UI delegate an opportunity to define the precise shape of this component for the sake of mouse processing. |
JToolTip |
createToolTip()
Suppressed: Returns the instance of JToolTip that should be used
to display the tooltip. |
private void |
deregisterNextFocusableComponent()
|
void |
disable()
Suppressed: @deprecated As of JDK version 1.1, replaced by java.awt.Component.setEnable(boolean). |
void |
enable()
Suppressed: @deprecated As of JDK version 1.1, replaced by java.awt.Component.setEnable(boolean). |
(package private) void |
enableSerialization()
Called by the JComponent constructor. |
void |
firePropertyChange(String propertyName,
boolean oldValue,
boolean newValue)
Suppressed: Reports a bound property change. |
void |
firePropertyChange(String propertyName,
byte oldValue,
byte newValue)
Suppressed: Reports a bound property change. |
void |
firePropertyChange(String propertyName,
char oldValue,
char newValue)
Suppressed: Reports a bound property change. |
void |
firePropertyChange(String propertyName,
double oldValue,
double newValue)
Suppressed: Reports a bound property change. |
void |
firePropertyChange(String propertyName,
float oldValue,
float newValue)
Suppressed: Reports a bound property change. |
void |
firePropertyChange(String propertyName,
int oldValue,
int newValue)
Suppressed: Reports a bound property change. |
void |
firePropertyChange(String propertyName,
long oldValue,
long newValue)
Suppressed: Reports a bound property change. |
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Supports reporting bound property changes. |
void |
firePropertyChange(String propertyName,
short oldValue,
short newValue)
Suppressed: Reports a bound property change. |
protected void |
fireVetoableChange(String propertyName,
Object oldValue,
Object newValue)
Supports reporting constrained property changes. |
AccessibleContext |
getAccessibleContext()
Suppressed: Returns the AccessibleContext associated with this
JComponent. |
ActionListener |
getActionForKeyStroke(KeyStroke aKeyStroke)
Suppressed: Returns the object that will perform the action registered for a given keystroke. |
ActionMap |
getActionMap()
Suppressed: Returns the ActionMap used to determine what
Action to fire for particular KeyStroke
binding. |
(package private) ActionMap |
getActionMap(boolean create)
Finds and returns the appropriate ActionMap. |
float |
getAlignmentX()
Enabled: Overrides Container.getAlignmentX to return
the vertical alignment. |
float |
getAlignmentY()
Enabled: Overrides Container.getAlignmentY to return
the horizontal alignment. |
AncestorListener[] |
getAncestorListeners()
Suppressed: Returns an array of all the ancestor listeners registered on this component. |
boolean |
getAutoscrolls()
Suppressed: Gets the autoscrolls property. |
javax.swing.border.Border |
getBorder()
Enabled: Returns the border of this component or null if no
border is currently set. |
Rectangle |
getBounds(Rectangle rv)
Enabled: Stores the bounds of this component into "return value" rv and returns rv. |
private Dictionary |
getClientProperties()
Returns a HashTable containing all of the
key/value "client properties" for this component. |
Object |
getClientProperty(Object key)
Suppressed: Returns the value of the property with the specified key. |
protected Graphics |
getComponentGraphics(Graphics g)
Returns the graphics object used to paint this component. |
int |
getConditionForKeyStroke(KeyStroke aKeyStroke)
Suppressed: Returns the condition that determines whether a registered action occurs in response to the specified keystroke. |
(package private) boolean |
getCreatedDoubleBuffer(boolean volatileImage)
Returns true if the RepaintManager
created the double buffer image from the component. |
int |
getDebugGraphicsOptions()
Suppressed: Returns the state of graphics debugging. |
static Locale |
getDefaultLocale()
Suppressed: Returns the default locale used to initialize each JComponent's locale property upon creation. |
private boolean |
getFlag(int aFlag)
|
Graphics |
getGraphics()
Suppressed: Returns this component's graphics context, which lets you draw on a component. |
int |
getHeight()
Enabled: Returns the current height of this component. |
InputMap |
getInputMap()
Suppressed: Returns the InputMap that is used when the
component has focus. |
InputMap |
getInputMap(int condition)
Suppressed: Returns the InputMap that is used during
condition. |
(package private) InputMap |
getInputMap(int condition,
boolean create)
Returns the InputMap to use for condition
condition. |
InputVerifier |
getInputVerifier()
Suppressed: Returns the input verifier for this component. |
Insets |
getInsets()
Enabled: If a border has been set on this component, returns the border's insets; otherwise calls super.getInsets. |
Insets |
getInsets(Insets insets)
Enabled: Returns an Insets object containing this component's inset
values. |
EventListener[] |
getListeners(Class listenerType)
Suppressed: Returns an array of all the objects currently registered as FooListeners
upon this JComponent. |
Point |
getLocation(Point rv)
Suppressed: Stores the x,y origin of this component into "return value" rv and returns rv. |
(package private) static Set |
getManagingFocusBackwardTraversalKeys()
Returns the Set of KeyStrokes to use if the component
is managing focus for backward focus traversal. |
(package private) static Set |
getManagingFocusForwardTraversalKeys()
Returns the Set of KeyStrokes to use if the component
is managing focus for forward focus traversal. |
Dimension |
getMaximumSize()
Suppressed: If the maximum size has been set to a non- null value
just returns it. |
Dimension |
getMinimumSize()
Enabled: If the minimum size has been set to a non- null value
just returns it. |
Component |
getNextFocusableComponent()
Deprecated. As of 1.4, replaced by FocusTraversalPolicy. |
private int |
getObscuredState(int compIndex,
int x,
int y,
int width,
int height)
Returns whether or not the region of the specified component is obscured by a sibling. |
Dimension |
getPreferredSize()
Enabled: If the preferredSize has been set to a
non-null value just returns it. |
java.beans.PropertyChangeListener[] |
getPropertyChangeListeners()
Suppressed: Returns an array of all the PropertyChangeListeners
added to this Component with addPropertyChangeListener(). |
java.beans.PropertyChangeListener[] |
getPropertyChangeListeners(String propertyName)
Suppressed: Returns an array of all the listeners which have been associated with the named property. |
KeyStroke[] |
getRegisteredKeyStrokes()
Suppressed: Returns the KeyStrokes that will initiate
registered actions. |
JRootPane |
getRootPane()
Suppressed: Returns the JRootPane ancestor for this component. |
Dimension |
getSize(Dimension rv)
Enabled: Stores the width/height of this component into "return value" rv and returns rv. |
private static boolean |
getSuppressDropTarget()
Returns true if setTransferHandler should install
a DropTarget. |
Point |
getToolTipLocation(MouseEvent event)
Suppressed: Returns the tooltip location in this component's coordinate system. |
String |
getToolTipText()
Enabled: Returns the tooltip string that has been set with setToolTipText. |
String |
getToolTipText(MouseEvent event)
Suppressed: Returns the string to be used as the tooltip for event. |
Container |
getTopLevelAncestor()
Suppressed: 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()
Suppressed: Gets the transferHandler property. |
String |
getUIClassID()
Suppressed: 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()
Suppressed: Returns the value that indicates whether the input verifier for the current focus owner will be called before this component requests focus. |
java.beans.VetoableChangeListener[] |
getVetoableChangeListeners()
Suppressed: Returns an array of all the vetoable change listeners registered on this component. |
Rectangle |
getVisibleRect()
Enabled: Returns the Component's "visible rectangle" - the
intersection of this component's visible rectangle:
|
int |
getWidth()
Enabled: Returns the current width of this component. |
(package private) static byte |
getWriteObjCounter(JComponent comp)
|
int |
getX()
Enabled: Returns the current x coordinate of the component's origin. |
int |
getY()
Enabled: Returns the current y coordinate of the component's origin. |
void |
grabFocus()
Suppressed: Requests that this Component get the input focus, and that this Component's top-level ancestor become the focused Window. |
boolean |
isDoubleBuffered()
Enabled: Returns whether this component should use a buffer to paint. |
static boolean |
isLightweightComponent(Component c)
Suppressed: Returns true if this component is lightweight, that is, if it doesn't have a native window system peer. |
boolean |
isManagingFocus()
Deprecated. As of 1.4, replaced by Component.setFocusTraversalKeys(int, Set) and
Container.setFocusCycleRoot(boolean). |
boolean |
isMaximumSizeSet()
Enabled: Returns true if the maximum size has been set to a non- null
value otherwise returns false. |
boolean |
isMinimumSizeSet()
Enabled: Returns true if the minimum size has been set to a non- null
value otherwise returns false. |
boolean |
isOpaque()
Enabled: Returns true if this component is completely opaque. |
boolean |
isOptimizedDrawingEnabled()
Enabled: Returns true if this component tiles its children -- that is, if it can guarantee that the children will not overlap. |
boolean |
isPaintingTile()
Suppressed: Returns true if the component is currently painting a tile. |
boolean |
isPreferredSizeSet()
Enabled: Returns true if the preferred size has been set to a non- null value otherwise returns false. |
boolean |
isRequestFocusEnabled()
Enabled: Returns true if this JComponent should
get focus; otherwise returns false. |
boolean |
isValidateRoot()
Enabled: 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)
Suppressed: 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. |
private boolean |
paintDoubleBuffered(JComponent paintingComponent,
Component bufferComponent,
Graphics g,
int clipX,
int clipY,
int clipW,
int clipH)
|
void |
paintImmediately(int x,
int y,
int w,
int h)
Suppressed: Paints the specified region in this component and all of its descendants that overlap the region, immediately. |
void |
paintImmediately(Rectangle r)
Suppressed: Paints the specified region now. |
private void |
paintWithOffscreenBuffer(JComponent paintingComponent,
Graphics g,
int clipX,
int clipY,
int clipW,
int clipH,
Image offscreen)
|
protected String |
paramString()
Returns a string representation of this JComponent. |
void |
print(Graphics g)
Suppressed: Invoke this method to print the component. |
void |
printAll(Graphics g)
Suppressed: 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. |
(package private) boolean |
processKeyBindings(KeyEvent e,
boolean pressed)
This is invoked as the result of a KeyEvent
that was not consumed by the FocusManager,
KeyListeners, or the component. |
(package private) static boolean |
processKeyBindingsForAllComponents(KeyEvent e,
Container container,
boolean pressed)
|
protected void |
processKeyEvent(KeyEvent e)
Overrides processKeyEvent to process events. |
protected void |
processMouseMotionEvent(MouseEvent e)
Processes mouse motion events, such as MouseEvent.MOUSE_DRAGGED. |
void |
putClientProperty(Object key,
Object value)
Suppressed: Adds an arbitrary key/value "client property" to this component. |
private void |
readObject(ObjectInputStream s)
We use the ObjectInputStream "registerValidation"
callback to update the UI for the entire tree of components
after they've all been read in. |
(package private) boolean |
rectangleIsObscured(int x,
int y,
int width,
int height)
If the specified rectangle is completely obscured by any of this component's opaque children then returns true. |
void |
registerKeyboardAction(ActionListener anAction,
KeyStroke aKeyStroke,
int aCondition)
Suppressed: This method is now obsolete, please use a combination of getActionMap() and getInputMap() for
similiar behavior. |
void |
registerKeyboardAction(ActionListener anAction,
String aCommand,
KeyStroke aKeyStroke,
int aCondition)
Suppressed: This method is now obsolete, please use a combination of getActionMap() and getInputMap() for
similiar behavior. |
private void |
registerNextFocusableComponent()
|
private void |
registerNextFocusableComponent(Component nextFocusableComponent)
|
private void |
registerWithKeyboardManager(boolean onlyIfNew)
Registers any bound WHEN_IN_FOCUSED_WINDOW actions with
the KeyboardManager. |
private void |
registerWithKeyboardManager(KeyStroke aKeyStroke)
|
void |
removeAncestorListener(AncestorListener listener)
Suppressed: Unregisters listener so that it will no longer receive
AncestorEvents. |
void |
removeNotify()
Suppressed: Notifies this component that it no longer has a parent component. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Suppressed: Removes a PropertyChangeListener from the listener list. |
void |
removePropertyChangeListener(String propertyName,
java.beans.PropertyChangeListener listener)
Suppressed: Removes a PropertyChangeListener for a specific property. |
void |
removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
Suppressed: Removes a VetoableChangeListener from the listener list. |
void |
repaint(long tm,
int x,
int y,
int width,
int height)
Enabled: Adds the specified region to the dirty region list if the component is showing. |
void |
repaint(Rectangle r)
Enabled: Adds the specified region to the dirty region list if the component is showing. |
boolean |
requestDefaultFocus()
Deprecated. As of 1.4, replaced by FocusTraversalPolicy.getDefaultComponent(Container).requestFocus() |
void |
requestFocus()
Suppressed: |
boolean |
requestFocus(boolean temporary)
Suppressed: JComponent overrides requestFocus solely
to make the method public so that UI implementations can cause
temporary focus changes. |
boolean |
requestFocusInWindow()
Suppressed: |
protected boolean |
requestFocusInWindow(boolean temporary)
JComponent overrides requestFocusInWindow
solely to make the method public so that UI implementations can cause
temporary focus changes. |
void |
resetKeyboardActions()
Suppressed: Unregisters all the bindings in the first tier InputMaps
and ActionMap. |
void |
reshape(int x,
int y,
int w,
int h)
Enabled: Moves and resizes this component. |
void |
revalidate()
Enabled: Supports deferred automatic layout. |
private boolean |
runInputVerifier()
|
void |
scrollRectToVisible(Rectangle aRect)
Enabled: Forwards the scrollRectToVisible() message to the
JComponent's parent. |
void |
setActionMap(ActionMap am)
Suppressed: Sets the ActionMap to am. |
void |
setAlignmentX(float alignmentX)
Enabled: Sets the the vertical alignment. |
void |
setAlignmentY(float alignmentY)
Enabled: Sets the the horizontal alignment. |
void |
setAutoscrolls(boolean autoscrolls)
Suppressed: Sets the autoscrolls property. |
void |
setBackground(Color bg)
Enabled: Sets the background color of this component. |
void |
setBorder(javax.swing.border.Border border)
Enabled: Sets the border of this component. |
(package private) void |
setCreatedDoubleBuffer(boolean volatileImage,
boolean newValue)
This is invoked by the RepaintManager if
createImage or createVolatileImage
is called on the component. |
void |
setDebugGraphicsOptions(int debugOptions)
Suppressed: Enables or disables diagnostic information about every graphics operation performed within the component or one of its children. |
static void |
setDefaultLocale(Locale l)
Suppressed: Sets the default locale used to initialize each JComponent's locale property upon creation. |
void |
setDoubleBuffered(boolean aFlag)
Enabled: Sets whether the this component should use a buffer to paint. |
void |
setEnabled(boolean enabled)
Enabled: Sets whether or not this component is enabled. |
private void |
setFlag(int aFlag,
boolean aValue)
|
void |
setFont(Font font)
Enabled: Sets the font for this component. |
void |
setForeground(Color fg)
Enabled: Sets the foreground color of this component. |
void |
setInputMap(int condition,
InputMap map)
Suppressed: Sets the InputMap to use under the condition
condition to
map. |
void |
setInputVerifier(InputVerifier inputVerifier)
Suppressed: Sets the input verifier for this component. |
void |
setMaximumSize(Dimension maximumSize)
Enabled: Sets the maximum size of this component to a constant value. |
void |
setMinimumSize(Dimension minimumSize)
Enabled: Sets the minimum size of this component to a constant value. |
void |
setNextFocusableComponent(Component aComponent)
Deprecated. As of 1.4, replaced by FocusTraversalPolicy |
void |
setOpaque(boolean isOpaque)
Enabled: If true the component paints every pixel within its bounds. |
(package private) void |
setPaintingChild(Component paintingChild)
|
void |
setPreferredSize(Dimension preferredSize)
Enabled: Sets the preferred size of this component. |
void |
setRequestFocusEnabled(boolean requestFocusEnabled)
Enabled: Provides a hint as to whether or not this JComponent
should get focus. |
void |
setToolTipText(String text)
Enabled: Registers the text to display in a tool tip. |
void |
setTransferHandler(TransferHandler newHandler)
Suppressed: Sets the transferHandler< |