F
Francesco M.
Hi all,
I have a Swing application which delivers its options via JMenuItem.
Of course there's a listener associated on every menuItem:
menuItem.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
doBusinessOperation();
}
});
Now the matter is, that I'm in need to fire the action
(actionPerfomed)
programmatically, for example when I display an error popup I should
fire an event which calls actionPerformed.
How would you do it ?
Thanks a lot in advance
Francesco
I have a Swing application which delivers its options via JMenuItem.
Of course there's a listener associated on every menuItem:
menuItem.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
doBusinessOperation();
}
});
Now the matter is, that I'm in need to fire the action
(actionPerfomed)
programmatically, for example when I display an error popup I should
fire an event which calls actionPerformed.
How would you do it ?
Thanks a lot in advance
Francesco