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 Get the changing title of Jnternalframe into JFrame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Get the changing title of Jnternalframe into JFrame" Watch "Get the changing title of Jnternalframe into JFrame" New topic
Author

Get the changing title of Jnternalframe into JFrame

prav ford
Greenhorn

Joined: Apr 28, 2004
Posts: 16
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

Joined: May 10, 2002
Posts: 341
Hi prav,
You can using a method setTitle(String title) of JInternalFrame.
prav ford
Greenhorn

Joined: Apr 28, 2004
Posts: 16
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Get the changing title of Jnternalframe into JFrame