public TurnoutAction() {
super("Turnouts\u2026", createImageIcon("switch.png"));
}
public void actionPerformed(ActionEvent e) {
TurnoutConfigurationDialog switchConfigDialog = new TurnoutConfigurationDialog(
AdHocRailway.this);
if (switchConfigDialog.isOkPressed()) {
updateTurnouts();
updateCommandHistory("Turnout configuration changed");
}
}