widthField.setPrecision(4);
widthField.setPrecision(2);
   JComponent createRenderOptionsPanel()   {      // create the render options panel      JPanel renderSizeOptions = new JPanel(new GridLayout(3, 2));      Border renderSizeBorder = BorderFactory.createEtchedBorder();      renderSizeOptions.setBorder(         BorderFactory.createTitledBorder(renderSizeBorder, "Render"));      // width      width = settings.getDoubleProperty("render.width");      JLabel widthLabel = new JLabel("Width");      renderSizeOptions.add(widthLabel);      widthField = new UnboundPositiveDoubleField(width, 4);      renderSizeOptions.add(widthField);      // The width units combo box      widthUnitsDescription = settings.getStringProperty("render.width.units");      if (widthUnitsDescription == null)      {         widthUnitsDescription = "pixels";      }      widthUnits = createUnitsComboBox();      widthUnits.setSelectedItem(widthUnitsDescription);      lastWidthUnit = widthUnits.getSelectedIndex();      if (widthUnitsDescription.equals("pixels"))      {         widthField.setPrecision(0);      }      else      {         widthField.setPrecision(4);      }      renderSizeOptions.add(widthUnits);      // height      height = settings.getDoubleProperty("render.height");      JLabel heightLabel = new JLabel("Height");      renderSizeOptions.add(heightLabel);      heightField = new UnboundPositiveDoubleField(height, 4);      renderSizeOptions.add(heightField);      // The height units combo box      heightUnitsDescription =         settings.getStringProperty("render.height.units");      if (heightUnitsDescription == null)      {         heightUnitsDescription = "pixels";      }      heightUnits = createUnitsComboBox();      heightUnits.setSelectedItem(heightUnitsDescription);      lastHieghtUnit = heightUnits.getSelectedIndex();      if (heightUnitsDescription.equals("pixels"))      {         heightField.setPrecision(0);      }      else      {         heightField.setPrecision(4);      }      renderSizeOptions.add(heightUnits);      // resolution      resolution = settings.getDoubleProperty("render.resolution");      JLabel resolutionLabel = new JLabel("Resolution");      renderSizeOptions.add(resolutionLabel);      resolutionField = new UnboundPositiveDoubleField(resolution, 4);      renderSizeOptions.add(resolutionField);      // The resolution combo box      resolutionUnitsDescription =         settings.getStringProperty("render.resolution.units");      resolutionUnitsBox = createResolutionComboBox();      resolutionUnitsBox.setSelectedItem(resolutionUnitsDescription);      renderSizeOptions.add(resolutionUnitsBox);      // the actual render panel      Box renderOptionsPanel = new Box(BoxLayout.Y_AXIS);      renderOptionsPanel.add(renderSizeOptions);      settingUp = false;      return renderOptionsPanel;   }