File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Murach's Java Servlets and JSP this week in the Servlets 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
jQuery in Action, 2nd edition
subject: JOptionPane
Similar Threads
[B]How To Center/Position a showMessageDialog box?[/B]
Message Dialog box --> action performed.
java alert
actions performed