File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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 ?
Chantal Ackermann
Ranch Hand

Joined: Sep 28, 2000
Posts: 508
hi,
you should use the ObserverPattern for such things. The JFrame will have to register a Listener to your internal frames.
this is a good article with sample code: http://www.artima.com/designtechniques/eventgenP.html
have fun,
chantal
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

What values are you passing?
------------------
Happy Coding,
Gregg Bolinger


GenRocket - Experts at Building Test Data
Tee ming
Greenhorn

Joined: Oct 26, 2001
Posts: 3
I am passing a String to set the value to textField in the JFrame.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to set value to JFrame from JInternalFrame
 
Similar Threads
Creating modal in JInternalFrame
JFrame Title Block
JInternalFrame not fit on desktopPane in full size
How to set value to JFrame from JInternalFrame
Jinternal frame