Swing: creating a checkbox or check symbol in menuItem of jMenu

Neeraj singh picture Neeraj singh · Sep 18, 2012 · Viewed 11.1k times · Source

I want to create a checkbox or check symbol in front of menuItem in a JMenu. For example, when we open a Notepad file and click on Format menu there is a checkbox in front of Word Wrap menuItem of the Format menu.

Answer

Andrew Thompson picture Andrew Thompson · Sep 18, 2012

Use a JCheckBoxMenuItem for check boxes in a menu.