I want JOptionPane dialog boxes to use the Windows 10 icons, but it uses Windows 7 ones, and i don´t know what to do.
Here is code:
import javax.swing.*;
public class JOPtest {
public static void main(String[] Args) {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException
| UnsupportedLookAndFeelException e) {
e.printStackTrace();
}
JOptionPane.showMessageDialog(null, "Test", "Test", JOptionPane.OK_OPTION);
}
}
I can´t find nothing on the web, and I hope somone can help me
What I get: Message box with wrong icon on Windows 10
What I want: Message box with right icon on Windows 10 (from system error message)
New contributor
Migazul8 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.