Skip to content
Advertisement

java change appearance of checkbox in JCheckBoxMenuItem

How can I change the default checkbox appearance of a JCheckBoxMenuItem?
I currently have default, but I want it to look like desired, which I strongly believe not to be custom as I have seen it numerous times already.

JCheckBoxMenuItem check = new JCheckBoxMenuItem("Title");

Advertisement

Answer

As camickr proposed in the comment, needed to set the Look and Feel (L&F) for my application.
See How to Set The Look And Feel for further explanation.
The L&F I had in mind was the ‘SystemLookAndFeel’ on Windows.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement