newButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
Point p = newButton.getLocationOnScreen();
p.x += 50;
UIDialog dialog = new EditorNewScenarioDialog();
dialog.setLocation(p);
dialog.start();
}
});
// load scenario button
JButton loadButton = Button.ScenarioLoad.create();