private JPanel createGeneralSettingsPanel()
   {
      JPanel jp = new JPanel();
      jp.setBorder(default_border);
      BoxLayout bl = new BoxLayout(jp, BoxLayout.PAGE_AXIS);
      jp.setLayout(bl);

      JPanel ip; // inner panel used for layout.

     ip = new JPanel();
     ip.add(new JLabel("Font Smoothing"));
     font_smoothing_selector = new JComboBox();
     font_smoothing_selector.addItem(RenderingHints.VALUE_TEXT_ANTIALIAS_DEFAULT);
     font_smoothing_selector.addItem(RenderingHints.VALUE_TEXT_ANTIALIAS_OFF);
     font_smoothing_selector.addItem(RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
     font_smoothing_selector.addItem(RenderingHints.VALUE_TEXT_ANTIALIAS_GASP);
     font_smoothing_selector.addItem(RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HBGR);
     font_smoothing_selector.addItem(RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB);
     font_smoothing_selector.addItem(RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_VBGR);
     font_smoothing_selector.addItem(RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_VRGB);

     ip.add(font_smoothing_selector);
     font_smoothing_selector.setSelectedItem(dialog_settings.getFontSmoothingValue());
     setItemAlignment(ip);
     jp.add(ip);

     editor_use_env_checkbox = new JCheckBox(UIStrings.SETTINGS_DIALOG_EDITOR_USE_ENV, !dialog_settings.editor_use_env);
     final JButton browse_button = new JButton(folder_icon);
     editor_use_env_checkbox.addActionListener(new ActionListener()
     {
         @Override
         public void actionPerformed(ActionEvent ae)
         {
            editor_path_field.setEnabled(!editor_use_env_checkbox.isSelected());
            browse_button.setEnabled(!editor_use_env_checkbox.isSelected());
          }
      });
      jp.add(editor_use_env_checkbox);

      ip = new JPanel();
      ip.add(new JLabel(UIStrings.SETTINGS_DIALOG_EDITOR_PATH_LABEL));
      editor_path_field = new JTextField(18);
      editor_path_field.setText(dialog_settings.editor_path);
      ip.add(editor_path_field);
      browse_button.setToolTipText(UIStrings.SETTINGS_DIALOG_EDITOR_BROWSE_TOOLTIP);
      browse_button.addActionListener(new ActionListener()
      {
         @Override
         public void actionPerformed(ActionEvent ae)
         {
            JFileChooser fc = new JFileChooser();
            fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
            fc.setDialogTitle(UIStrings.UI_OPEN_EDITOR_LABEL);
            fc.setFileFilter(Utility.getExecutableFileFilter());
            int returnVal = fc.showOpenDialog(null);

            if (returnVal == JFileChooser.APPROVE_OPTION)
            {
               editor_path_field.setText(fc.getSelectedFile().getAbsolutePath());
            }
         }
      });
      ip.add(browse_button);
      setItemAlignment(ip);
      jp.add(ip);

      editor_use_env_checkbox.doClick();
      return jp;
   }