Forums Register Login

Change the title of an icon

+Pie Number of slices to send: Send
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)
+Pie Number of slices to send: Send
add a WindowListener
use setTitle(String title) method of the frame.
use the method in the windowIconified() and windowDeiconified() methods.
If you send is by car it's a shipment, but if by ship it's cargo. This tiny ad told me:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 793 times.
Similar Threads
How To Change the Title Icon of JoptionPane/dialog
hot to change the icon at title bar?
Replacing the "java cup" with own image in title bar
how to customize the title bar of a JInternalFrame
I want to add/modify to this icon that runs the jar
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 07:03:56.