So this is your first use of a listener? That's okay. We all start somewhere.
The ActionEvent e can be used to determine the source of the event. Review the ActionEvent API. Typically,...
Type: Posts; User: GregBrannon
So this is your first use of a listener? That's okay. We all start somewhere.
The ActionEvent e can be used to determine the source of the event. Review the ActionEvent API. Typically,...
Your shorthand leaves me confused, but did you try it?
'm' is a JMenu. JMenus are populated with JMenuItems. Listeners are added to JMenuItems.
Using the add( String ) method as you've done adds a JMenuItem to 'm' essentially anonymously, because...
Handling Events From Menu Items - not different, really.