How to Set the Background Color of a JButton on the Mac OS

前端 未结 5 1828
Happy的楠姐
Happy的楠姐 2020-11-30 08:55

Normally with Java Swing you can set the background color of a button with:

myJButton.setBackground(Color.RED);

which would cause the butto

5条回答
  •  星月不相逢
    2020-11-30 09:08

    Based on your own purposes, you can do that based on setOpaque(true/false) and setBorderPainted(true/false); try and combine them to fit your purpose

提交回复
热议问题