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 :)
            Asked
            
        
        
            Active
            
        
            Viewed 152 times
        
    0
            
            
        
        Idov
        
- 5,006
 - 17
 - 69
 - 106
 
- 
                    See http://stackoverflow.com/questions/778222/make-a-button-round – Bart van Heukelom Aug 26 '11 at 12:38
 
1 Answers
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