if (lisTerrain.getItemCount() > 0) { lisTerrain.select(0);
if (lisTerrain.getModel().getSize() > 0) { lisTerrain.setSelectedIndex(0);
    private void setCurrentHex(IHex hex) {        curHex = hex.duplicate();        texElev.setText(Integer.toString(curHex.getElevation()));        refreshTerrainList();        if (lisTerrain.getItemCount() > 0) {            lisTerrain.select(0);            refreshTerrainFromList();        }        texTheme.setText(curHex.getTheme());        repaint();        repaintWorkingHex();    }