title: Swing: creating a checkbox or check symbol in menuItem of jMenu
body: <p>I want to create a checkbox or check symbol in front of menuItem in a <code>JMenu</code>. 
  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.</p>