/** Saves the options the user has selected to disk */ protected void saveOptions() { levelFactoryAllowed.saveAllowedBlocks(blocksAllowed); int val = 0; try { String str = textFields[0].getText(); if (str != null) { val = Integer.valueOf(str).intValue(); levelFactoryAllowed.saveNumberOfEmptyBlocks(val); } } catch (Exception ex) { } try { String str = textFields[1].getText(); if (str != null) { val = Integer.valueOf(str).intValue(); levelFactoryAllowed.saveNumberOfStartBlocks(val); } } catch (Exception ex) { } try { String str = textFields[2].getText(); if (str != null) { val = Integer.valueOf(str).intValue(); levelFactoryAllowed.saveTimeUntilWater(val); } } catch (Exception ex) { } try { String str = textFields[3].getText(); if (str != null) { val = Integer.valueOf(str).intValue(); levelFactoryAllowed.saveWaterSpeed(val); } } catch (Exception ex) { } try { String str = textFields[4].getText(); if (str != null) { val = Integer.valueOf(str).intValue(); levelFactoryAllowed.saveLeftToFill(val); } } catch (Exception ex) { } }