if(ae.getActionCommand().equalsIgnoreCase("hexes_load")) { loadTerrainFile();
if (ae.getSource() == butBoardNew) { boardNew(); } else if (ae.getSource() == butBoardLoad) { boardLoad(); } else if (ae.getSource() == butBoardSave) { boardSave(); } else if (ae.getSource() == butBoardSaveAs) { boardSaveAs(); } else if (ae.getSource() == butDelTerrain && lisTerrain.getSelectedItem() != null) { Terrain toRemove = new Terrain(lisTerrain.getSelectedItem()); curHex.removeTerrain(toRemove.getType());
    public void actionPerformed(ActionEvent ae) {        if(ae.getActionCommand().equalsIgnoreCase("hexes_load")) {            loadTerrainFile();            refreshTerrainList();        }        if(ae.getActionCommand().equalsIgnoreCase("hexes_clear")) {            //getHexesFromBoard(false);            refreshTerrainList();        }        if(ae.getActionCommand().equalsIgnoreCase("board_new")) {            boardNew();        }        if(ae.getActionCommand().equalsIgnoreCase("board_load")) {            boardLoad();        }        if(ae.getActionCommand().equalsIgnoreCase("board_save")) {            boardSave();        }        if(ae.getActionCommand().equalsIgnoreCase("board_saveas")) {            boardSaveAs();        }    }