public RoutesAction() {
super("Routes\u2026", createImageIcon("route_edit.png"));
}
public void actionPerformed(ActionEvent e) {
RoutesConfigurationDialog routesConfig = new RoutesConfigurationDialog(
AdHocRailway.this);
if (routesConfig.isOkPressed()) {
updateTurnouts();
updateCommandHistory("Routes configuration changed");
}
}