AbstractAction action = new AbstractAction() {
private MonitorStarter starter;
public void actionPerformed(ActionEvent event) {
if (this.starter == null) {
this.starter = new MonitorStarter(engine);
}
this.starter.start();
}
};
item.addActionListener(action);