0
我想通过UIManager常量更改我的JOptionPane的背景颜色,文本区域和按钮区域的背景不受影响。不同背景的JOptionPane
我已经发布我的代码:3
如何修改他们的背景呢?
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();
}
这也是我如何调用的JOptionPane
else{
JOptionPane.showMessageDialog(rootPane, "pls");
}
是不是好些了吗?
是什么问题? –
消息的背景和按钮应该是蓝色的 – user3579230
是你的代码图片吗? –