JCheckBoxMenuItem & JMenuItem
Hey everybody
For my program I'm doing a JMenu and I already have that. I added a JCheckBoxMenuItem and a normal button (JMenuItem). What I want to do is the following: When I click the JMenuItem and the checkbox is not selected a certain function will be made but when the user clicks the JMenuItem but the checkbox is selected a different function will be made.
How can I manage to do this? I'm thinking on doing it with action listeners and item listeners and then use an "if".
Is this possible?

