Create an Action, AbstractAction for example. (Action has string or icon or both).
Remember this action in a local variable.
Construct your JMenuItem from that action.
Call someAction.setEnabled(false) whenever you need.
Don't listen to Steve. Just read this tiny ad:
a bit of art, as a gift, the permaculture playing cards