GeeCON Prague 2014*
The moose likes Swing / AWT / SWT and the fly likes How to set value to JFrame from JInternalFrame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to set value to JFrame from JInternalFrame " Watch "How to set value to JFrame from JInternalFrame " New topic
Author

How to set value to JFrame from JInternalFrame

Tee ming
Greenhorn

Joined: Oct 26, 2001
Posts: 3
I have many JInternalFrame inside frame. When i click on the
button on the JInternal Frame, i need the pass the value of JInterFrame and set it into JFrame. Can you show me how ?
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Pass what values? You should be able to get the top level container ( i.e. the JFrame that holds the JDesktopPane that holds the JInternalFrame ) by doing the following in the JInternalFrame:



-Nate


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to set value to JFrame from JInternalFrame