• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JOptionPane

 
Udaya Bascar
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How i can change the Icon thats displayed on the
JOptionPane
 
Rene Liebmann
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know, which method you use for showing JOptionPane or maybe you use it without one of these static methods? Anyway you can create an Icon or ImageIcon and either you can call the setIcon Method or you can give your icon as a parameter of a static method, e.g.
 
Udaya Bascar
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i use this code
for displaying my MessageBox
JOptionPane.showMessageDialog(null,"HALO");
now how can i change the icon
thats displayed in the above JOptionPane
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic