Component.contains

Component.contains

Class Overview | Class Members | This Package | All Packages

Syntax 1
public boolean contains( int x, int y )
Parameters
x
the x coordinate of the point.
y
the y coordinate of the point.
Description
Checks whether this component "contains" the specified point, where x and y are defined to be relative to the coordinate system of this component.

See Also
getComponentAt



Syntax 2
public boolean contains( Point p )
Parameters
p
the point.
Description
Checks whether this component "contains" the specified point, where the point's x and y coordinates are defined to be relative to the coordinate system of this component.

See Also
getComponentAt