The AccessibleComponent interface should be supported by any object that is rendered on the screen. This interface provides the standard mechanism for an assistive technology to determine and set the graphical representation of an object. Applications can determine if an object supports the AccessibleComponent interface by first obtaining its AccessibleContext and then calling the AccessibleContext#getAccessibleComponent method. If the return value is not null, the object supports this interface.
@version
1.7 10/05/99 14:00:28
@author
Peter Korn
@author
Hans Muller
@author
Willie Walker
Adds the specified focus listener to receive focus events from this component.
Parameters
lthe focus listener
Checks whether the specified point is within this object's bounds, where the point's x and y coordinates are defined to be relative to the coordinate system of the object.
Parameters
pthe Point relative to the coordinate system of the object
Return
true if object contains Point; otherwise false
See Also
Returns the Accessible child, if one exists, contained at the local coordinate Point.
Parameters
pThe point relative to the coordinate system of this object.
Return
the Accessible, if it exists, at the specified location; otherwise null
Gets the background color of this object.
Return
the background color, if supported, of the object; otherwise, null
Gets the bounds of this object in the form of a Rectangle object. The bounds specify this object's width, height, and location relative to its parent.
Return
A rectangle indicating this component's bounds; null if this object is not on the screen.
See Also
Gets the Cursor of this object.
Return
the Cursor, if supported, of the object; otherwise, null
See Also
Gets the Font of this object.
Return
the Font,if supported, for the object; otherwise, null
See Also
Gets the FontMetrics of this object.
Parameters
fthe Font
Return
the FontMetrics, if supported, the object; otherwise, null
See Also
Gets the foreground color of this object.
Return
the foreground color, if supported, of the object; otherwise, null
Gets the location of the object relative to the parent in the form of a point specifying the object's top-left corner in the screen's coordinate space.
Return
An instance of Point representing the top-left corner of the object's bounds in the coordinate space of the screen; null if this object or its parent are not on the screen
Returns the location of the object on the screen.
Return
the location of the object on screen; null if this object is not on the screen
Returns the size of this object in the form of a Dimension object. The height field of the Dimension object contains this object's height, and the width field of the Dimension object contains this object's width.
Return
A Dimension object that indicates the size of this component; null if this object is not on the screen
See Also
Determines if the object is enabled. Objects that are enabled will also have the AccessibleState.ENABLED state set in their AccessibleStateSets.
Return
true if object is enabled; otherwise, false
Returns whether this object can accept focus or not. Objects that can accept focus will also have the AccessibleState.FOCUSABLE state set in their AccessibleStateSets.
Return
true if object can accept focus; otherwise false
Determines if the object is showing. This is determined by checking the visibility of the object and its ancestors. Note: this will return true even if the object is obscured by another (for example, it is underneath a menu that was pulled down).
Return
true if object is showing; otherwise, false
Determines if the object is visible. Note: this means that the object intends to be visible; however, it may not be showing on the screen because one of the objects that this object is contained by is currently not visible. To determine if an object is showing on the screen, use isShowing().

Objects that are visible will also have the AccessibleState.VISIBLE state set in their AccessibleStateSets.

Return
true if object is visible; otherwise, false
Removes the specified focus listener so it no longer receives focus events from this component.
Parameters
lthe focus listener
Requests focus for this object. If this object cannot accept focus, nothing will happen. Otherwise, the object will attempt to take focus.
Sets the background color of this object.
Parameters
cthe new Color for the background
Sets the bounds of this object in the form of a Rectangle object. The bounds specify this object's width, height, and location relative to its parent.
Parameters
rrectangle indicating this component's bounds
See Also
Sets the Cursor of this object.
Parameters
cursorthe new Cursor for the object
See Also
Sets the enabled state of the object.
Parameters
bif true, enables this object; otherwise, disables it
See Also
Sets the Font of this object.
Parameters
fthe new Font for the object
See Also
Sets the foreground color of this object.
Parameters
cthe new Color for the foreground
Sets the location of the object relative to the parent.
Parameters
pthe new position for the top-left corner
See Also
Resizes this object so that it has width and height.
Parameters
dThe dimension specifying the new size of the object.
See Also
Sets the visible state of the object.
Parameters
bif true, shows this object; otherwise, hides it
See Also