How to change the button backgrounds inside JOptionPane

后端 未结 4 890
情书的邮戳
情书的邮戳 2020-12-30 17:24

I was wondering if anybody knew if it was possible to change the background color on the buttons inside a JOptionPane. I know how to change the entire JO

4条回答
  •  萌比男神i
    2020-12-30 18:10

    Add the the line of code below before your JOptionPane

    UIManager.put("Button.background", Color.white);
    JOptionPane.showMessageDialog(null, "Project, Please");
    

提交回复
热议问题