This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Small event handeling  problem with non rectagular component Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Small event handeling  problem with non rectagular component" Watch "Small event handeling  problem with non rectagular component" New topic
Author

Small event handeling problem with non rectagular component

Jigar Gosar
Ranch Hand

Joined: Jul 09, 2002
Posts: 95
i have a circular component i dont want it to be cliked when mouse has been clicked outside its circular boundary.
i know most of u will reply that in mouse click event check if x&y cordinates r within the circular boundary.
but the problem is i have many circular components overlaping each other and i want them to recive mouse events when mouse is on their circular region. but insted my upper circular component gets the event even if mouse has been clicked in its rectangular region, outside the actual circular region.r u getting it.
please help me.
p.s. hi cindy


Regards,<br />Jigar Gosar (SCJP 1.4)<br />visit: <a href="http://jigar.org/blog" target="_blank" rel="nofollow">http://jigar.org/blog</a>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Small event handeling problem with non rectagular component
 
Similar Threads
what if i dont like where mouse gets clicked
Event handling
how to implement non rectangular components e.g.Circle
Events from inner components.
Mouse Event on Container