I'm trying to change the background color of a JOptionPane but this code didnt work.
JOptionPane jOptionPane1 = new JOptionPane( );
jOptionPane1.showMessageDialog(this, "Επιτυχής καταχώρηση");
jOptionPane1.setBackground(Color.white);
But why?
(I understand that JOptionPane is a static method and theres no need to create a new object, and that i can just import the UIManager to get the job done.)