Hello,

How do I change the color of an entire JOptionPane? My code below paints the edge around the JOptionPane white; however, the button's and text's background remains grey.

JOptionPane optPane = new JOptionPane(text, JOptionPane.PLAIN_MESSAGE);
optPane.setOpaque(true);
optPane.setBackground(Color.white);

JDialog dialog = optPane.createDialog(ePanel, item);
dialog.show();

Many thanks for your time!