This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Title icon on JDialogs

 
vinaya kumar
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Yes, parent is also a JDialog.
In that case , what should be done.??
Thanks in Advance
vinaya
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic