I'm trying to change background color of my JOptionPane through UIManager constants, the backgrounds of the text area and the button area are not affected.
I have posted my code :3
How can I modify their backgrounds too?
public LoginFINAL() {
this.setImagen("/imagenes/FondoLogin.png");
UIManager.put("OptionPane.background",Color.RED );
UIManager.put("Panel.background",Color.RED);
UIManager.put("Button.background",Color.RED);
initComponents();
jLabel3.setVisible(false);
setLocationRelativeTo(null);
textUsers.requestFocus();
}
And this is how i call the JoptionPane
else{
JOptionPane.showMessageDialog(rootPane, "pls");
}
Is it better now?