if(ie.getSource().equals(elevC)) { curHex.setElevation(9 - elevC.getSelectedIndex()); hexC.repaint(); } if(ie.getSource().equals(loadedList)) { int elevation = curHex == null ? 0 : curHex.getElevation(); setCurrentHex(new Hex(board.terrains[loadedList.getSelectedIndex()], elevation));
if (ie.getSource() == lisTerrain) { refreshTerrainFromList();
    public void itemStateChanged(ItemEvent ie) {        if(ie.getSource().equals(elevC)) {            curHex.setElevation(9 - elevC.getSelectedIndex());            hexC.repaint();        }        if(ie.getSource().equals(loadedList)) {      int elevation = curHex == null ? 0 : curHex.getElevation();            setCurrentHex(new Hex(board.terrains[loadedList.getSelectedIndex()], elevation));        }    }