| 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:
|
 |
 |
|
|
subject: requesting all components at a Point
|
|
|