I have added JOptionPane to my application but I do not know how to change background color to white?
`int option = JOptionPane.showConfirmDialog(bcfiDownloa
UIManager.put("OptionPane.background", Color.WHITE); UIManager.getLookAndFeelDefaults().put("Panel.background", Color.WHITE);
Put this code before you call your JOptionPane dialog like:
UIManager.put("OptionPane.background", Color.decode("#3c6562"));
UIManager.getLookAndFeelDefaults().put("Panel.background", Color.decode("#3c6562"));
int input= JOptionPane.showConfirmDialog
(
null,
"Close the programm?",
"Exit",
JOptionPane.YES_NO_OPTION
);
if(input == 0)
{
System.exit(0);
}