File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Changing Title text

 
Blanka Tierrablanca
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7023
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Swing/AWT forum.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic