How to set the button color of a JButton (not background color)

后端 未结 5 1049
情话喂你
情话喂你 2021-01-13 04:08

I have a JButton that I would like to change the background color of to white. When using the Metal Look And Feel, I achieve the desired effect with setB

5条回答
  •  北海茫月
    2021-01-13 04:36

    You'll have to decide if it's worth the effort, but you can always create youe own ButtonUI, as shown in this example due to @mKorbel.

提交回复
热议问题