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

1

12

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.

Foreshadow answered 18/9, 2012 at 11:29 Comment(0)
U
38

Use a JCheckBoxMenuItem for check boxes in a menu.

Umiak answered 18/9, 2012 at 11:33 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.