How to delete the question mark in joptionpane?

How do I get rid of any markers in the upper left corner of joptionpane?

int result = JOptionPane.showConfirmDialog(null,myPanel,"Please Enter X and Y Values",JOptionPane.OK_CANCEL_OPTION);

This works normally, but I want to delete annoying? It's in the upper left corner

Solution

Use plan_ Message message type

JOptionPane.showConfirmDialog(null,"Help",JOptionPane.OK_CANCEL_OPTION,JOptionPane.PLAIN_MESSAGE);
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>