Find « Component « Java Swing Q&A





1. Find components in Java's GUI hierarchy    stackoverflow.com

With this code I am able to find what tab is selected but I need to do stuff with what is inside the tab. How do I work with the hierarchy? ...

3. Help on finding the component    coderanch.com

Thank you! As you required I changed my display name. Actually the situation is I have tens of buttons which is created dynamically. when I click a button, it will popup a menu. My question is how I know on which button I've clicked when I click a menuitem, say "Edit", on the popupmenu. If I use getSource or getComponent what ...

4. Finding All New Components    coderanch.com

Hi Gregg, Thanks for the reply. I think I didn't explain the complexity of my problem well (as I re-read it, it looks like a simple problem). I would like to add listeners at run-time from another Java class. Assume Class A builds some GUI and depending on the actions performed on the GUI, new GUI components are created. Whenever a ...

5. Find a component by its name    java-forums.org

I have created a Swing UI and the UI contains a frame, a panel and may be more components like buttons and text fields. I have speech recognition enabled for this UI. So, the user can say "set the background of the frame, a, to black". Now my problem is when the user says the above line I need to detect ...