I created a menu in the menu bar in which I'd like to create a JCheckBoxMenuItem
to set a condition for highlighting remaining menu items.
Something like the following pseudo-code:
if login(true)
then highlight remaining menuitems
else
un-highlight the menuitems