wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes requesting all components at a Point Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "requesting all components at a Point" Watch "requesting all components at a Point" New topic
Author

requesting all components at a Point

Manuel Moons
Ranch Hand

Joined: Mar 05, 2002
Posts: 229
Hello,
Is there a way to request all Components at a Point in another component.
I have a LayeredPane and I want to show all Components at a location (where the user clicks).
Jose Botella
Ranch Hand

Joined: Jul 03, 2001
Posts: 2120
Component[] Container.getComponents()
and
boolean Component.contains(Point)
might help you.


SCJP2. Please Indent your code using UBB Code
Manuel Moons
Ranch Hand

Joined: Mar 05, 2002
Posts: 229
I solved it. I thought there would be some kind of method for this in SwingUtilities but there isn't so:
 
Consider Paul's rocket mass heater.
 
subject: requesting all components at a Point