cons.gridy = 7;
cons.gridy = 8;
	public GeneralOptionPane()	{		super("general");		GridBagLayout layout = new GridBagLayout();		setLayout(layout);		GridBagConstraints cons = new GridBagConstraints();		cons.gridx = cons.gridy = 0;		cons.gridwidth = 4;		cons.gridheight = 1;		cons.fill = GridBagConstraints.BOTH;		cons.weightx = 1.0f;		JLabel label = new JLabel(jEdit.getProperty("options.general.lf.note"),			SwingConstants.CENTER);		layout.setConstraints(label,cons);		add(label);		cons.gridy = 1;		cons.gridwidth = 3;		label = new JLabel(jEdit.getProperty("options.general.lf"),			SwingConstants.RIGHT);		layout.setConstraints(label,cons);		add(label);		cons.gridx = 3;		cons.gridwidth = 1;		String lf = UIManager.getLookAndFeel().getClass().getName();		String[] lfs = { "Java", "Mac", "Motif", "Windows" };		lookAndFeel = new JComboBox(lfs);		if(METAL.equals(lf))			lookAndFeel.setSelectedIndex(0);		else if(MAC.equals(lf))			lookAndFeel.setSelectedIndex(1);		else if(MOTIF.equals(lf))			lookAndFeel.setSelectedIndex(2);		else if(WINDOWS.equals(lf))			lookAndFeel.setSelectedIndex(3);		layout.setConstraints(lookAndFeel,cons);		add(lookAndFeel);				cons.gridx = 0;		cons.gridy = 2;		cons.gridwidth = 3;		label = new JLabel(jEdit.getProperty("options.general.recent"),			SwingConstants.RIGHT);		layout.setConstraints(label,cons);		add(label);		cons.gridx = 3;		cons.gridwidth = 1;		recent = new JTextField(jEdit.getProperty("recent"));		layout.setConstraints(recent,cons);		add(recent);		cons.gridx = 0;		cons.gridy = 3;		cons.gridwidth = 3;		label = new JLabel(jEdit.getProperty("options.general.clipHistory"),			SwingConstants.RIGHT);		layout.setConstraints(label,cons);		add(label);		cons.gridx = 3;		cons.gridwidth = 1;		clipHistory = new JTextField(jEdit.getProperty("clipHistory"));		layout.setConstraints(clipHistory,cons);		add(clipHistory);		cons.gridx = 0;		cons.gridy = 4;		cons.gridwidth = 3;		label = new JLabel(jEdit.getProperty("options.general.autosave"),			SwingConstants.RIGHT);		layout.setConstraints(label,cons);		add(label);		cons.gridx = 3;		cons.gridwidth = 1;		autosave = new JTextField(jEdit.getProperty("autosave"));		layout.setConstraints(autosave,cons);		add(autosave);		cons.gridx = 0;		cons.gridy = 5;		cons.gridwidth = 3;		label = new JLabel(jEdit.getProperty("options.general.backups"),			SwingConstants.RIGHT);		layout.setConstraints(label,cons);		add(label);		cons.gridx = 3;		cons.gridwidth = 1;		backups = new JTextField(jEdit.getProperty("backups"));		layout.setConstraints(backups,cons);		add(backups);		cons.gridx = 0;		cons.gridy = 6;		cons.gridwidth = 3;		label = new JLabel(jEdit.getProperty("options.general.lineSeparator"),			SwingConstants.RIGHT);		layout.setConstraints(label,cons);		add(label);		cons.gridx = 3;		cons.gridwidth = 1;		String[] lineSeps = { jEdit.getProperty("lineSep.unix"),			jEdit.getProperty("lineSep.windows"),			jEdit.getProperty("lineSep.mac") };		lineSeparator = new JComboBox(lineSeps);		String lineSep = jEdit.getProperty("buffer.lineSeparator",			System.getProperty("line.separator"));		if("\n".equals(lineSep))			lineSeparator.setSelectedIndex(0);		else if("\r\n".equals(lineSep))			lineSeparator.setSelectedIndex(1);		else if("\r".equals(lineSep))			lineSeparator.setSelectedIndex(2);		layout.setConstraints(lineSeparator,cons);		add(lineSeparator);		cons.gridx = 0;		cons.gridy = 7;		cons.gridwidth = 3;		label = new JLabel(jEdit.getProperty("options.general.browser"),			SwingConstants.RIGHT);		layout.setConstraints(label,cons);		add(label);		cons.gridx = 3;		cons.gridwidth = 1;		String[] browsers = { "jedit_moz_remote", "iexplore.exe",			"netscape.exe" };		browser = new JComboBox(browsers);		browser.setEditable(true);		browser.setSelectedItem(jEdit.getProperty("browser"));		layout.setConstraints(browser,cons);		add(browser);		cons.gridx = 0;		cons.gridy = 8;		cons.gridwidth = cons.REMAINDER;		cons.fill = GridBagConstraints.NONE;		cons.anchor = GridBagConstraints.WEST;		saveDesktop = new JCheckBox(jEdit.getProperty(			"options.general.saveDesktop"));		saveDesktop.getModel().setSelected("on".equals(jEdit.getProperty(			"saveDesktop")));		layout.setConstraints(saveDesktop,cons);		add(saveDesktop);		cons.gridy = 9;		server = new JCheckBox(jEdit.getProperty(			"options.general.server"));		server.getModel().setSelected("on".equals(jEdit.getProperty(			"server")));		layout.setConstraints(server,cons);		add(server);		cons.gridy = 10;		showTips = new JCheckBox(jEdit.getProperty(			"options.general.showTips"));		showTips.getModel().setSelected("on".equals(jEdit.getProperty(			"view.showTips")));		layout.setConstraints(showTips,cons);		add(showTips);		cons.gridy = 11;		showToolbar = new JCheckBox(jEdit.getProperty(			"options.general.showToolbar"));		showToolbar.getModel().setSelected("on".equals(jEdit.getProperty(			"view.showToolbar")));		layout.setConstraints(showToolbar,cons);		add(showToolbar);	}