• Post Reply Bookmark Topic Watch Topic
  • New Topic

setting the frame icon to JDialog windows

 
ram anantha
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I set a frame Icon (icon on the top left of the window frame) image to a JDialog window...I have a class that is derived
from JDialog -- JDialog doesn't have a setIcon or a setFramIcon method...
Thanks
Ram
 
Matt Hansen
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JDialog uses the icon of it's parent. So, just set the icon of the parent.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!