Hi there just a quick question, if I have multiple JMenuItems do I need to create an inner class ActionListener for each and every JMenuItem I create? Or is there a more efficient way of doing it?
I know I could just use event.getSource and check it all in one big ActionListener, but I've been informed that this is bad pracitce and should be done using inner classes.
Just wondering if there were any other ways of achieving this?
Thanks,
Stuart
I know I could just use event.getSource and check it all in one big ActionListener, but I've been informed that this is bad pracitce and should be done using inner classes.
Just wondering if there were any other ways of achieving this?
Thanks,
Stuart
Comment