How to set background color of background in JOptionPane ?
Picture

UIManager UI = new UIManager(); UI.put("OptionPane.background", Color.white); UIManager.put("Button.background", Color.white); UI.put("Panel.background", Color.white); UI.put("OptionPane.foreground", Color.white); UI.put("OptionPane.messagebackground", Color.white); UI.put("OptionPane.textbackground", Color.white); UI.put("OptionPane.warningDialog.titlePane.shadow", Color.white); UI.put("OptionPane.warningDialog.border.background", Color.white); UI.put("OptionPane.warningDialog.titlePane.background", Color.white); UI.put("OptionPane.warningDialog.titlePane.foreground", Color.white); UI.put("OptionPane.questionDialog.border.background", Color.white); UI.put("OptionPane.questionDialog.titlePane.background", Color.white); UI.put("OptionPane.questionDialog.titlePane.foreground", Color.white); UI.put("OptionPane.questionDialog.titlePane.shadow", Color.white); UI.put("OptionPane.messageForeground", Color.white); UI.put("OptionPane.foreground", Color.white); UI.put("OptionPane.errorDialog.border.background", Color.white); UI.put("OptionPane.errorDialog.titlePane.background", Color.white); UI.put("OptionPane.errorDialog.titlePane.foreground", Color.white); UI.put("OptionPane.errorDialog.titlePane.shadow", Color.white); JOptionPane.showMessageDialog(null, "Hello world", "HELLO WORLD", JOptionPane.INFORMATION_MESSAGE);
java swing look-and-feel jtextfield nimbus
Faken143
source share