?
-
i have an ExitAction which is added into a JMenu.
i want to use the same logic of it for windowClosing.
so i simply call exitAction.actionPerformed(null).
is such a call ugly or is it better to have an exit() method and have
the ExitAction's actionPerformed and JFrame's windowClosing call it?
thank you in advance.
i want to use the same logic of it for windowClosing.
so i simply call exitAction.actionPerformed(null).
is such a call ugly or is it better to have an exit() method and have
the ExitAction's actionPerformed and JFrame's windowClosing call it?
thank you in advance.