hi..is it pos to have multi menItems with same ActionListener class .. ActionEvent to choose to switch method case..i am copying notepad for mess about...i know switch does not use strings..many thanks
File Menu "New Ctr+N" "Open Ctr+O"
eg switch(...) case: jump to method()...break case: jump to method()...break case: jump to method()...break etc
posted 7 years ago
event.getSource() will give you the info you want, but menuItems generally do vastly different things, so having their own separate listener/s makes more sense