*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Title icon on JDialogs
 
Similar Threads
Application level post-processor for Weblogic
HTML Parsing
JEditorPane
How do you format the a particular cell of a JTable to accept different datatypes ?!!
JPopUPmenu Problem of PopUp scroll