• Post Reply Bookmark Topic Watch Topic
  • New Topic

Change the title of an icon  RSS feed

 
Gizzmo Zeuzere
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!
When i iconified a Jinternalframe, i want to change the title of the icon. But after when i maximized it i want to keep the old title. For exemple my first title is :
c:\....\....\topic.java
then i want that the title of the icon be :
topic.java
then when i will maximize the frma i want
c:\....\....\topic.java
How can i do that ?
(sorry for the english)
 
Shashi Kanta
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
add a WindowListener
use setTitle(String title) method of the frame.
use the method in the windowIconified() and windowDeiconified() methods.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!