aspose 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 Spring in Action this week in the Spring 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.
 
Consider Paul's rocket mass heater.
 
subject: How to set value to JFrame from JInternalFrame