JOptionPane : How do you change that icon?
0 posts in topic
Flat View  Flat View

Posted By:   Al_Kent
Posted On:   Thursday, October 4, 2001 08:58 AM

How do you set the default java coffee cup icon in the left hand corner of a JOptionPane confirm dialog? Below is a sample of my code -

int reply = JOptionPane.showConfirmDialog(null, "Are you sure you want to cancel?", "Cancel message" , JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);

if (reply == JOptionPane.YES_OPTION) {
.......Do something......
About | Sitemap | Contact