Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Get the changing title of Jnternalframe into JFrame

 
prav ford
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a jtree in jinternalframe. my internal frames title reflects the selected node of the jtree. I need to get this changing title to reflect on the main jframe.
 
Surasak Leenapongpanit
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi prav,
You can using a method setTitle(String title) of JInternalFrame.
 
prav ford
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Let me make my problem more clear. I have a main frame, which has a internal frame. In that internal frame i have a jtree. Now when i click on the node of the jtree, i can update the title of the internal frame. I can reflect in the title , the node i have clicked. Now i need to do this on the main frame. I assume i need to listen to the jinternalframe state. Since i need to dynamically change the title of the main frame as the title of the internal frame changes.
Can u help me in this regard.
Regards,
Prav_ford.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic