I have been trying to display a messagebox in Swing with JOptionPane
by using:
JOptionPane.showMessageDialog(Component parentComponent,
Object message,
String title,
int messageType)
throws HeadlessException
The message box looks as shown here:
When I add this line
UIManager.put("OptionPane.background", Color.white);
Option pane looks as shown here:
What should I do in order to get a pure white background in the message box?