It's not a secret anymore!*
The moose likes Swing / AWT / SWT and the fly likes obtaining the component tree for a particular JPanel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "obtaining the component tree for a particular JPanel" Watch "obtaining the component tree for a particular JPanel" New topic
Author

obtaining the component tree for a particular JPanel

toto litoto
Greenhorn

Joined: May 29, 2002
Posts: 4
JPanel myPanel = new JPanel();
Component[] componentsmyPanel.getComponents();
 
 
subject: obtaining the component tree for a particular JPanel
 
Similar Threads
JTable, rowVector, addNotify()
Quick Question
How do I add JPanel to an existing JPanel?
How can I use methods from tabs in a JTabbedPane.
How add comp to frame so x,y pos and height never changes, width does adjust?