Change selected dot color of JRadioButtonMenuItem

前端 未结 4 841
陌清茗
陌清茗 2020-12-19 10:33

I\'m working on my personal Java chat client whose one feature is setting user\'s status (Available, Invisible, Busy). To make it user-friendly, I put those statuses into a

4条回答
  •  执念已碎
    2020-12-19 11:28

    The radio button's dot is rendered by the UI delegate for each Look & Feel. You can supply your own BasicRadioButtonUI, but the effort is not trivial. As an alternative, implement the Icon interface, as shown here in ColorIcon.

提交回复
热议问题