0

I'm new to Java, and i'd like to know if Java has something similar to the C# region which defines which parts of the control's area should react to mouse event, etc.
(like in creating a round button...)
thanks :)

Idov
  • 5,006
  • 17
  • 69
  • 106

1 Answers1

0

Yes. The method contains(int, int) in the java.awt.Component class is used to query a control to ask whether it contains a particular point, for the purposes of mouse processing. If you're defining a custom control, you can override this method to describe the shape.

Ernest Friedman-Hill
  • 80,601
  • 10
  • 150
  • 186