更改 JOptionPane 的背景

changing the background of JOptionPane

我用这段代码更改了 JOptionPane 的背景:

 UIManager.put("OptionPane.background",new ColorUIResource(204, 255, 255));

但结果并不像我预期的那样

UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
UIManager.put("OptionPane.background", Color.BLUE);
UIManager.put("Panel.background", Color.BLUE);
JOptionPane.showConfirmDialog(null, "YOUR INFORMATION HERE");