Search code examples
javaswingjmenuitem

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");

Solution

  • 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.