Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDialog icon

 
Vinod Venugopal
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I put an icon on the top left hand corner of a JDialog , as we can do so in a JFrame? I know we can do it thru JOptionPane but my JDialog has some buttons which I don't want to remove, so I can't think from that point of view. Any suggestions?
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to set the parent frame icon and JDialog uses it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic