This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Title icon on JDialogs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Title icon on JDialogs" Watch "Title icon on JDialogs" New topic
Author

Title icon on JDialogs

vinaya kumar
Ranch Hand

Joined: Jan 20, 2002
Posts: 70
Hi,
I'm wondering if there is a way to change the titlebar icon (the> little icon on the top left of the window) in a JDialog? I know how to do it in JFrame (setImageIcon) and JInternalFrame (setFrameIcon) but I have failed to
come up with a solution to this little problem.
Thanks in advance
vinaya

http://www.eos.dk/archive/swing/msg00745.html
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
I think you have to set it in the parent frame before creating the JDialog. It should pick up the parents icon.
vinaya kumar
Ranch Hand

Joined: Jan 20, 2002
Posts: 70
Yes Yes, parent is also a JDialog.
In that case , what should be done.??
Thanks in Advance
vinaya
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Title icon on JDialogs
 
It's not a secret anymore!