• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to set value to JFrame from JInternalFrame

 
Tee ming
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What values are you passing?
------------------
Happy Coding,
Gregg Bolinger
 
Tee ming
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am passing a String to set the value to textField in the JFrame.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic