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 Changing Title text Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Changing Title text" Watch "Changing Title text" New topic
Author

Changing Title text

Blanka Tierrablanca
Greenhorn

Joined: Feb 08, 2004
Posts: 6
I'm trying to change the text of the title once the window is minimized but I only figured out how to change text in the window not the Title bar.
Please help.
public void windowIconified(WindowEvent e) {
???
}
Please let me know what command I should use and I should be all set.
Thank you.
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
bblanka24,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

Moving to Swing/AWT forum.


[Jess in Action][AskingGoodQuestions]
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

Are you asking how to change the text that shows up, for example, in the Windows "System tray" when your window is iconified? I think that's a detail that's really up to the operating system, as the whole concept of a "System tray" is system-dependent. But on many systems, the text is just the same text that's in the window's title bar.
If you're just asking about the text in the window's title bar, in Java that's called the "title" and you can set it (for a Frame, JFrame, Dialog, or JDialog) with the window object's "setTitle()" method. In a WindowEvent handler for an WindowEvent e, you'd say
e.getWindow().setTitle("The title");
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Changing Title text
 
Similar Threads
Javascript code
Changing Title's text
Javascript code
Weblogic Portal | Updating title of window
Weblogic 9.2 | Updating Window Title