java - JOptionPane : change the Icon -


i have layout in joptionpane:

jcheckbox checkbox = new jcheckbox("do not show message again."); string message = "level loaded successfully";   object[] params = {message, checkbox};   int n = joptionpane.showconfirmdialog(p, params, "draft saving",      joptionpane.plain_message);   

everything fine except display of icon..,

ideally not have icon (hence joptionpane.plain_message), default icon.

how can change ?

jason

use version of method takes icon parameter, , pass in null icon.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -