Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JOptionPane icons

843804Dec 21 2004 — edited Dec 28 2004
Hi,

I want to have a simple 'OK' message box in my application. A user hits the save button and they get a nice 'OK, you have saved your thingo' message dialog.

Why is it that when I have ....

JOptionPane.showMessageDialog(MainFrame.getInstance(), message,
windowTitle, JOptionPane.OK_OPTION);

.... it gives me a dirty ugly great big red cross on my dialog. I don't want to have a red cross.... what in that line of code indicates that the dialog is somehow an error????

I want to have a nice green tick.... or if not, then a info icon, or something aesthetic.

anyone know????
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 25 2005
Added on Dec 21 2004
4 comments
596 views