我在 JOptionPane
中有这个布局:
JCheckBox checkbox = new JCheckBox("Do not show this message again.");
String message = "Level loaded successfully";
Object[] params = {message, checkbox};
int n = JOptionPane.showConfirmDialog(p, params, "Draft saving",
JOptionPane.PLAIN_MESSAGE);
除了 Icon
的显示之外一切都很好..,
理想情况下,我不希望有一个图标(因此 JOptionPane.PLAIN_MESSAGE
),但我得到了一个默认图标
。
我怎样才能改变这个?
杰森
最佳答案
使用 version of the method它采用图标参数,并为图标传入 null。
关于java - JOptionPane : change the Icon,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6562847/