aspose file tools
The moose likes Swing / AWT / SWT and the fly likes requesting all components at a Point Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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:
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: requesting all components at a Point
 
Similar Threads
Crisscrossing lines in component diagram
JComboBox
JMenu hides behind components
layout
Diff btw Front Controller and MVC?