menuItem.addActionListener(new AbstractAction() {
private JythonRunnerWindow window;
public void actionPerformed(ActionEvent event) {
if (this.window == null) {
this.window = new JythonRunnerWindow(engine);
}
this.window.show();
}
});
menuItem.setEnabled(false);