new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinForestSizeWarn")).show();
new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinForestSizeWarn")).setVisible(true);
    private boolean applyValues() {        int boardWidth;        int boardHeight;        int hilliness, range, cliffs;        int minWaterSpots, maxWaterSpots, minWaterSize, maxWaterSize, probDeep;        int minForestSpots, maxForestSpots, minForestSize, maxForestSize, probHeavy;        int minRoughSpots, maxRoughSpots, minRoughSize, maxRoughSize;        int minPavementSpots, maxPavementSpots, minPavementSize, maxPavementSize;        int minRubbleSpots, maxRubbleSpots, minRubbleSize, maxRubbleSize;        int minFortifiedSpots, maxFortifiedSpots, minFortifiedSize, maxFortifiedSize;        int minIceSpots, maxIceSpots, minIceSize, maxIceSize;        int minSwampSpots, maxSwampSpots, minSwampSize, maxSwampSize;        int probRoad, probRiver, probInvert;        int minRadius, maxRadius, minCraters, maxCraters, probCrater;        int drought,fire,freeze,flood,fxmod;        int algorithmToUse;        String theme="";        String cityType;        int cityBlocks = 4;        int cityMinCF = 10;        int cityMaxCF = 100;        int cityMinFloors = 1;        int cityMaxFloors = 6;        int cityDensity = 75;        int townSize = 60;        int mountainPeaks,mountainHeightMin,mountainHeightMax;        int mountainStyle,mountainWidthMin,mountainWidthMax;        int invertNegative = 0;        try {            boardWidth = Integer.parseInt(texBoardWidth.getText());            boardHeight = Integer.parseInt(texBoardHeight.getText());        } catch (NumberFormatException ex) {            new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.OnlyIntegersWarn")).show(); //$NON-NLS-1$            return false;        }                if (boardHeight <= 0 || boardHeight <= 0) {            new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.BoardSizeWarn")).show(); //$NON-NLS-1$            return false;        }        theme = texTheme.getText();        if (advanced) {            try {                hilliness = Integer.parseInt(texHilliness.getText());                range = Integer.parseInt(texRange.getText());                cliffs = Integer.parseInt(texCliffs.getText());                probInvert = Integer.parseInt(texProbInvert.getText());                minWaterSpots = Integer.parseInt(texMinWaterSpots.getText());                maxWaterSpots = Integer.parseInt(texMaxWaterSpots.getText());                minWaterSize = Integer.parseInt(texMinWaterSize.getText());                maxWaterSize = Integer.parseInt(texMaxWaterSize.getText());                minForestSpots = Integer.parseInt(texMinForestSpots.getText());                maxForestSpots = Integer.parseInt(texMaxForestSpots.getText());                minForestSize = Integer.parseInt(texMinForestSize.getText());                maxForestSize = Integer.parseInt(texMaxForestSize.getText());                minRoughSpots = Integer.parseInt(texMinRoughSpots.getText());                maxRoughSpots = Integer.parseInt(texMaxRoughSpots.getText());                minRoughSize = Integer.parseInt(texMinRoughSize.getText());                maxRoughSize = Integer.parseInt(texMaxRoughSize.getText());                minSwampSpots = Integer.parseInt(texMinSwampSpots.getText());                maxSwampSpots = Integer.parseInt(texMaxSwampSpots.getText());                minSwampSize = Integer.parseInt(texMinSwampSize.getText());                maxSwampSize = Integer.parseInt(texMaxSwampSize.getText());                minPavementSpots = Integer.parseInt(texMinPavementSpots.getText());                maxPavementSpots = Integer.parseInt(texMaxPavementSpots.getText());                minPavementSize = Integer.parseInt(texMinPavementSize.getText());                maxPavementSize = Integer.parseInt(texMaxPavementSize.getText());                minRubbleSpots = Integer.parseInt(texMinRubbleSpots.getText());                maxRubbleSpots = Integer.parseInt(texMaxRubbleSpots.getText());                minRubbleSize = Integer.parseInt(texMinRubbleSize.getText());                maxRubbleSize = Integer.parseInt(texMaxRubbleSize.getText());                minFortifiedSpots = Integer.parseInt(texMinFortifiedSpots.getText());                maxFortifiedSpots = Integer.parseInt(texMaxFortifiedSpots.getText());                minFortifiedSize = Integer.parseInt(texMinFortifiedSize.getText());                maxFortifiedSize = Integer.parseInt(texMaxFortifiedSize.getText());                minIceSpots = Integer.parseInt(texMinIceSpots.getText());                maxIceSpots = Integer.parseInt(texMaxIceSpots.getText());                minIceSize = Integer.parseInt(texMinIceSize.getText());                maxIceSize = Integer.parseInt(texMaxIceSize.getText());                probRoad = Integer.parseInt(texProbRoad.getText());                probRiver = Integer.parseInt(texProbRiver.getText());                probHeavy = Integer.parseInt(texProbHeavy.getText());                probDeep = Integer.parseInt(texProbDeep.getText());                probCrater = Integer.parseInt(texProbCrater.getText());                minRadius = Integer.parseInt(texMinRadius.getText());                maxRadius = Integer.parseInt(texMaxRadius.getText());                maxCraters = Integer.parseInt(texMaxCraters.getText());                minCraters = Integer.parseInt(texMinCraters.getText());                algorithmToUse = Integer.parseInt(texAlgorithmToUse.getText());                drought = Integer.parseInt(texProbDrought.getText());                fire = Integer.parseInt(texProbFire.getText());                freeze = Integer.parseInt(texProbFreeze.getText());                flood = Integer.parseInt(texProbFlood.getText());                fxmod = Integer.parseInt(texFxMod.getText());                cityBlocks = Integer.parseInt(texCityBlocks.getText());                cityMinCF = Integer.parseInt(texCityMinCF.getText());                cityMaxCF = Integer.parseInt(texCityMaxCF.getText());                cityMinFloors = Integer.parseInt(texCityMinFloors.getText());                cityMaxFloors = Integer.parseInt(texCityMaxFloors.getText());                cityDensity = Integer.parseInt(texCityDensity.getText());                mountainHeightMin = Integer.parseInt(texMountainHeightMin.getText());                mountainHeightMax = Integer.parseInt(texMountainHeightMax.getText());                mountainWidthMin = Integer.parseInt(texMountainWidthMin.getText());                mountainWidthMax = Integer.parseInt(texMountainWidthMax.getText());                mountainStyle = Integer.parseInt(texMountainStyle.getText());                mountainPeaks = Integer.parseInt(texMountainPeaks.getText());                invertNegative = Integer.parseInt(texInvertNegative.getText());                                } catch (NumberFormatException ex) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.OnlyIntegersWarn")).show(); //$NON-NLS-1$                return false;            }                        if (hilliness < 0 || hilliness > 99) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.AmmountOfElevationWarn")).show(); //$NON-NLS-1$                return false;            }            if (cliffs < 0 || cliffs > 100) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.CliffsWarn")).show(); //$NON-NLS-1$                return false;            }            if (range < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.elevRangeWarn")).show(); //$NON-NLS-1$                return false;            }            if (probInvert < 0 || probInvert > 100) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.depressionWarn")).show(); //$NON-NLS-1$                return false;            }            if (minWaterSpots < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinLakesWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxWaterSpots < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxLakesWarn1")).show(); //$NON-NLS-1$                return false;            }            if (maxWaterSpots < minWaterSpots) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxLakesWarn2")).show(); //$NON-NLS-1$                return false;            }            if (minWaterSize < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinLakeSizeWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxWaterSize < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxLakeSizeWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxWaterSize < minWaterSize) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxLakeSizeWarn1")).show(); //$NON-NLS-1$                return false;            }            if (probDeep < 0 || probDeep > 100) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.DeepWaterProbWarn")).show(); //$NON-NLS-1$                return false;            }            if (minForestSpots < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinForestsWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxForestSpots < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxForestsWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxForestSpots < minForestSpots) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxForestsWarn1")).show(); //$NON-NLS-1$                return false;            }            if (minForestSize < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinForestSizeWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxForestSize < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxForestSizeWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxForestSize < minForestSize) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxForestSizeWarn1")).show(); //$NON-NLS-1$                return false;            }            if (probHeavy < 0 || probHeavy > 100) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.HeavyForestProbWarn")).show(); //$NON-NLS-1$                return false;            }            if (minRoughSpots < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinRoughsWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxRoughSpots < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxRoughsWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxRoughSpots < minRoughSpots) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxRoughsWarn1")).show(); //$NON-NLS-1$                return false;            }            if (minRoughSize < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinRoughSizeWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxRoughSize < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxRoughSizeWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxRoughSize < minRoughSize) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxRoughSizeWarn1")).show(); //$NON-NLS-1$                return false;            }            if (minSwampSpots < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinSwampsWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxSwampSpots < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxSwampsWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxSwampSpots < minSwampSpots) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxSwampsWarn1")).show(); //$NON-NLS-1$                return false;            }            if (minSwampSize < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinSwampSizeWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxSwampSize < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxSwampSizeWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxSwampSize < minSwampSize) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxSwampSizeWarn1")).show(); //$NON-NLS-1$                return false;            }            if (minPavementSpots < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinPavementWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxPavementSpots < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxPavementWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxPavementSpots < minPavementSpots) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxPavementWarn1")).show(); //$NON-NLS-1$                return false;            }            if (minPavementSize < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinPavementSizeWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxPavementSize < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxPavementSizeWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxPavementSize < minPavementSize) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxPavementSizeWarn1")).show(); //$NON-NLS-1$                return false;            }            if (minRubbleSpots < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinRubbleWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxRubbleSpots < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxRubbleWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxRubbleSpots < minRubbleSpots) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxRubbleWarn1")).show(); //$NON-NLS-1$                return false;            }            if (minRubbleSize < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinRubbleSizeWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxRubbleSize < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxRubbleSizeWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxRubbleSize < minRubbleSize) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxRubbleSizeWarn1")).show(); //$NON-NLS-1$                return false;            }            if (minFortifiedSpots < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinFortifiedWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxFortifiedSpots < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxFortifiedWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxFortifiedSpots < minFortifiedSpots) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxFortifiedWarn1")).show(); //$NON-NLS-1$                return false;            }            if (minFortifiedSize < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinFortifiedSizeWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxFortifiedSize < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxFortifiedSizeWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxFortifiedSize < minFortifiedSize) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxFortifiedSizeWarn1")).show(); //$NON-NLS-1$                return false;            }            if (minIceSpots < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinIceWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxIceSpots < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxIceWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxIceSpots < minIceSpots) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxIceWarn1")).show(); //$NON-NLS-1$                return false;            }            if (minIceSize < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinIceSizeWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxIceSize < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxIceSizeWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxIceSize < minIceSize) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxIceSizeWarn1")).show(); //$NON-NLS-1$                return false;            }            if (probRiver < 0 || probRiver > 100) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.RiverProbWarn")).show(); //$NON-NLS-1$                return false;            }            if (probRoad < 0 || probRoad > 100) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.RoadProbWarn")).show(); //$NON-NLS-1$                return false;            }            if (probCrater < 0 || probCrater > 100) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.CratersProbWarn")).show(); //$NON-NLS-1$                return false;            }            if (minRadius < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinCraterRadiusWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxRadius < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxCraterRadiusWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxRadius < minRadius) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxCraterRadiusWarn1")).show(); //$NON-NLS-1$                return false;            }            if (maxCraters < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxCratersWarn")).show(); //$NON-NLS-1$                return false;            }            if (minCraters < 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinCratersWarn")).show(); //$NON-NLS-1$                return false;            }            if (maxCraters < minCraters) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxCratersWarn1")).show(); //$NON-NLS-1$                return false;            }            if (algorithmToUse < 0 || algorithmToUse > 2) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.AlgorithmWarn")).show(); //$NON-NLS-1$                return false;            }                        if (cityMinCF < 1 || cityMaxCF > 150) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.CFOutOfRangeWarn")).show(); //$NON-NLS-1$                return false;            }                        if (cityMinFloors < 1 || cityMaxFloors > 100) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.FloorsOutOfRangeWarn")).show(); //$NON-NLS-1$                return false;            }                        if (cityDensity < 1 || cityDensity > 100) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.DensityOutOfRangeWarn")).show(); //$NON-NLS-1$                return false;            }                        if ((mountainWidthMin < 1 || mountainWidthMax < mountainWidthMin)                    && mountainPeaks > 0) {                new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MountainWidthOutOfRangeWarn")).setVisible(true); //$NON-NLS-1$            }                    } else {            String s = choElevation.getSelectedItem();            if (s.equals(NONE)) {                hilliness = 0;                range = 0;            } else if (s.equals(LOW)) {                hilliness = 25;                range = 3;            } else if (s.equals(MEDIUM)) {                hilliness = 50;                range = 5;            } else {                hilliness = 75;                range = 8;            }            s = choCliffs.getSelectedItem();            if (s.equals(NONE)) {                cliffs = 0;            } else if (s.equals(LOW)) {                cliffs = 25;            } else if (s.equals(MEDIUM)) {                cliffs = 50;            } else {                cliffs = 75;            }            s = choWoods.getSelectedItem();            if (s.equals(NONE)) {                minForestSize = 0;                maxForestSize = 0;                minForestSpots = 0;                maxForestSpots = 0;                probHeavy = 0;            } else if (s.equals(LOW)) {                minForestSize = 3;                maxForestSize = 6;                minForestSpots = 3;                maxForestSpots = 6;                probHeavy = 20;            } else if (s.equals(MEDIUM)) {                minForestSize = 3;                maxForestSize = 10;                minForestSpots = 4;                maxForestSpots = 8;                probHeavy = 30;            } else {                minForestSize = 8;                maxForestSize = 13;                minForestSpots = 6;                maxForestSpots = 10;                probHeavy = 45;            }            s = choLakes.getSelectedItem();            if (s.equals(NONE)) {                minWaterSize = 0;                maxWaterSize = 0;                minWaterSpots = 0;                maxWaterSpots = 0;                probDeep = 0;            } else if (s.equals(LOW)) {                minWaterSize = 1;                maxWaterSize = 5;                minWaterSpots = 1;                maxWaterSpots = 5;                probDeep = 20;            } else if (s.equals(MEDIUM)) {                minWaterSize = 6;                maxWaterSize = 10;                minWaterSpots = 2;                maxWaterSpots = 5;                probDeep = 30;            } else {                minWaterSize = 8;                maxWaterSize = 15;                minWaterSpots = 3;                maxWaterSpots = 6;                probDeep = 45;            }            s = choRough.getSelectedItem();            if (s.equals(NONE)) {                minRoughSize = 0;                maxRoughSize = 0;                minRoughSpots = 0;                maxRoughSpots = 0;            } else if (s.equals(LOW)) {                minRoughSize = 1;                maxRoughSize = 2;                minRoughSpots = 2;                maxRoughSpots = 6;            } else if (s.equals(MEDIUM)) {                minRoughSize = 2;                maxRoughSize = 5;                minRoughSpots = 3;                maxRoughSpots = 8;            } else {                minRoughSize = 3;                maxRoughSize = 7;                minRoughSpots = 5;                maxRoughSpots = 10;            }            s = choSwamp.getSelectedItem();            if (s.equals(NONE)) {                minSwampSize = 0;                maxSwampSize = 0;                minSwampSpots = 0;                maxSwampSpots = 0;            } else if (s.equals(LOW)) {                minSwampSize = 1;                maxSwampSize = 2;                minSwampSpots = 2;                maxSwampSpots = 6;            } else if (s.equals(MEDIUM)) {                minSwampSize = 2;                maxSwampSize = 5;                minSwampSpots = 3;                maxSwampSpots = 8;            } else {                minSwampSize = 3;                maxSwampSize = 7;                minSwampSpots = 5;                maxSwampSpots = 10;            }            s = choPavement.getSelectedItem();            if (s.equals(NONE)) {                minPavementSize = 0;                maxPavementSize = 0;                minPavementSpots = 0;                maxPavementSpots = 0;            } else if (s.equals(LOW)) {                minPavementSize = 1;                maxPavementSize = 2;                minPavementSpots = 2;                maxPavementSpots = 6;            } else if (s.equals(MEDIUM)) {                minPavementSize = 2;                maxPavementSize = 5;                minPavementSpots = 3;                maxPavementSpots = 8;            } else {                minPavementSize = 3;                maxPavementSize = 7;                minPavementSpots = 5;                maxPavementSpots = 10;            }            s = choRubble.getSelectedItem();            if (s.equals(NONE)) {                minRubbleSize = 0;                maxRubbleSize = 0;                minRubbleSpots = 0;                maxRubbleSpots = 0;            } else if (s.equals(LOW)) {                minRubbleSize = 1;                maxRubbleSize = 2;                minRubbleSpots = 2;                maxRubbleSpots = 6;            } else if (s.equals(MEDIUM)) {                minRubbleSize = 2;                maxRubbleSize = 5;                minRubbleSpots = 3;                maxRubbleSpots = 8;            } else {                minRubbleSize = 3;                maxRubbleSize = 7;                minRubbleSpots = 5;                maxRubbleSpots = 10;            }            s = choFortified.getSelectedItem();            if (s.equals(NONE)) {                minFortifiedSize = 0;                maxFortifiedSize = 0;                minFortifiedSpots = 0;                maxFortifiedSpots = 0;            } else if (s.equals(LOW)) {                minFortifiedSize = 1;                maxFortifiedSize = 2;                minFortifiedSpots = 1;                maxFortifiedSpots = 2;            } else if (s.equals(MEDIUM)) {                minFortifiedSize = 2;                maxFortifiedSize = 3;                minFortifiedSpots = 2;                maxFortifiedSpots = 4;            } else {                minFortifiedSize = 2;                maxFortifiedSize = 4;                minFortifiedSpots = 3;                maxFortifiedSpots = 6;            }            s = choIce.getSelectedItem();            if (s.equals(NONE)) {                minIceSize = 0;                maxIceSize = 0;                minIceSpots = 0;                maxIceSpots = 0;            } else if (s.equals(LOW)) {                minIceSize = 1;                maxIceSize = 2;                minIceSpots = 2;                maxIceSpots = 6;            } else if (s.equals(MEDIUM)) {                minIceSize = 2;                maxIceSize = 5;                minIceSpots = 3;                maxIceSpots = 8;            } else {                minIceSize = 3;                maxIceSize = 7;                minIceSpots = 5;                maxIceSpots = 10;            }            s = choRoads.getSelectedItem();            if (s.equals(NONE)) {                probRoad = 0;            } else if (s.equals(LOW)) {                probRoad = 25;            } else if (s.equals(MEDIUM)) {                probRoad = 50;            } else {                probRoad = 75;            }            s = choRivers.getSelectedItem();            if (s.equals(NONE)) {                probRiver = 0;            } else if (s.equals(LOW)) {                probRiver = 25;            } else if (s.equals(MEDIUM)) {                probRiver = 50;            } else {                probRiver = 75;            }                        s = choCraters.getSelectedItem();            if(s.equals(NONE)) {                probCrater = 0;                minRadius = 0;                maxRadius = 0;                minCraters = 0;                maxCraters = 0;            } else if (s.equals(LOW)) {                probCrater = 25;                minRadius = 1;                maxRadius = 3;                minCraters = 1;                maxCraters = 3;            } else if (s.equals(MEDIUM)) {                probCrater = 50;                minRadius = 1;                maxRadius = 5;                minCraters = 3;                maxCraters = 8;            } else {                probCrater = 75;                minRadius = 3;                maxRadius = 9;                minCraters = 6;                maxCraters = 14;            }                        s = choMountain.getSelectedItem();            if(s.equals(NONE)) {                mountainPeaks = 0;                mountainHeightMin = 4;                mountainHeightMax = 6;                mountainWidthMin = 7;                mountainWidthMax = 10;                mountainStyle = 0;            } else if (s.equals(LOW)) {                mountainPeaks = 1;                mountainHeightMin = 4;                mountainHeightMax = 6;                mountainWidthMin = 7;                mountainWidthMax = 10;                mountainStyle = 0;            } else if (s.equals(MEDIUM)) {                mountainPeaks = 2;                mountainHeightMin = 6;                mountainHeightMax = 8;                mountainWidthMin = 7;                mountainWidthMax = 10;                mountainStyle = 0;            } else {                mountainPeaks = 3;                mountainHeightMin = 8;                mountainHeightMax = 10;                mountainWidthMin = 9;                mountainWidthMax = 14;                mountainStyle = MapSettings.MOUNTAIN_SNOWCAPPED;            }                        cityBlocks = 16;            cityMinCF = 10;            cityMaxCF = 100;            cityMinFloors = 1;            cityMaxFloors = 6;            cityDensity = 75;            townSize = 60;            algorithmToUse = 0;            probInvert = 0;            fxmod = 0;            flood = 0;            freeze = 0;            fire = 0;            drought = 0;        }                cityType = choCity.getSelectedItem();        if(!advanced && cityType.equals("TOWN")) {            cityBlocks = 3;            cityMaxCF = 50;            cityMaxFloors = 3;        }        mapSettings.setBoardSize(boardWidth, boardHeight);        mapSettings.setElevationParams(hilliness, range, probInvert);        mapSettings.setCliffParam(cliffs);        mapSettings.setWaterParams(minWaterSpots, maxWaterSpots,                                     minWaterSize, maxWaterSize, probDeep);        mapSettings.setForestParams(minForestSpots, maxForestSpots,                                    minForestSize, maxForestSize, probHeavy);        mapSettings.setRoughParams(minRoughSpots, maxRoughSpots,                                    minRoughSize, maxRoughSize);        mapSettings.setSwampParams(minSwampSpots, maxSwampSpots,                                    minSwampSize, maxSwampSize);        mapSettings.setPavementParams(minPavementSpots, maxPavementSpots,                                    minPavementSize, maxPavementSize);        mapSettings.setRubbleParams(minRubbleSpots, maxRubbleSpots,                minRubbleSize, maxRubbleSize);        mapSettings.setFortifiedParams(minFortifiedSpots, maxFortifiedSpots,                minFortifiedSize, maxFortifiedSize);        mapSettings.setIceParams(minIceSpots, maxIceSpots,                minIceSize, maxIceSize);        mapSettings.setRiverParam(probRiver);        mapSettings.setRoadParam(probRoad);        mapSettings.setCraterParam(probCrater, minCraters, maxCraters, minRadius, maxRadius);        mapSettings.setSpecialFX(fxmod, fire, freeze, flood, drought);        mapSettings.setAlgorithmToUse(algorithmToUse);        mapSettings.setCityParams(cityBlocks,                cityType,                cityMinCF,                cityMaxCF,                cityMinFloors,                cityMaxFloors,                cityDensity,                townSize);        mapSettings.setMountainParams(mountainPeaks,                mountainWidthMin,                mountainWidthMax,                mountainHeightMin,                mountainHeightMax,                mountainStyle);        mapSettings.setInvertNegativeTerrain(invertNegative);                mapSettings.setTheme(theme);                if (!advanced) {            loadValues();        }        bsd.updateMapSettings(mapSettings);        return true;    }