aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JOptionPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JOptionPane" Watch "JOptionPane" New topic


Udaya Bascar
Ranch Hand

Joined: Jun 18, 2002
Posts: 32
How i can change the Icon thats displayed on the
Rene Liebmann
Ranch Hand

Joined: May 02, 2002
Posts: 196
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

Joined: Jun 18, 2002
Posts: 32
i use this code
for displaying my MessageBox
now how can i change the icon
thats displayed in the above JOptionPane
I agree. Here's the link:
subject: JOptionPane
Similar Threads
java alert
Message Dialog box --> action performed.
actions performed
[B]How To Center/Position a showMessageDialog box?[/B]