copyAreaDisabled = new JCheckBox(jEdit.getProperty( "options.general.copyAreaDisabled")); copyAreaDisabled.getModel().setSelected("on".equals(jEdit.getProperty( "view.copyAreaDisabled"))); addComponent(copyAreaDisabled);
	public GeneralOptionPane()	{		super("general");		/* Look and feel */		addComponent(new JLabel(jEdit.getProperty("options.general.lf.note")));		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);		addComponent(jEdit.getProperty("options.general.lf"),			lookAndFeel);		/* Recent file count */		recent = new JTextField(jEdit.getProperty("recent"));		addComponent(jEdit.getProperty("options.general.recent"),recent);		/* History count */		history = new JTextField(jEdit.getProperty("history"));		addComponent(jEdit.getProperty("options.general.history"),history);		/* Autosave interval */		autosave = new JTextField(jEdit.getProperty("autosave"));		addComponent(jEdit.getProperty("options.general.autosave"),autosave);		/* Backup count */		backups = new JTextField(jEdit.getProperty("backups"));		addComponent(jEdit.getProperty("options.general.backups"),backups);		/* Backup directory */		backupDirectory = new JTextField(jEdit.getProperty(			"backup.directory"));		addComponent(jEdit.getProperty("options.general.backupDirectory"),			backupDirectory);		/* Backup filename prefix */		backupPrefix = new JTextField(jEdit.getProperty("backup.prefix"));		addComponent(jEdit.getProperty("options.general.backupPrefix"),			backupPrefix);		/* Backup suffix */		backupSuffix = new JTextField(jEdit.getProperty(			"backup.suffix"));		addComponent(jEdit.getProperty("options.general.backupSuffix"),			backupSuffix);		/* Line separator */		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);		addComponent(jEdit.getProperty("options.general.lineSeparator"),			lineSeparator);		/* Session management */		saveDesktop = new JCheckBox(jEdit.getProperty(			"options.general.saveDesktop"));		saveDesktop.getModel().setSelected("on".equals(jEdit.getProperty(			"saveDesktop")));		addComponent(saveDesktop);		/* Save window geometry */		saveGeometry = new JCheckBox(jEdit.getProperty(			"options.general.saveGeometry"));		saveGeometry.getModel().setSelected("on".equals(jEdit.getProperty(			"saveGeometry")));		addComponent(saveGeometry);		/* Show hints in status bar */		showTips = new JCheckBox(jEdit.getProperty(			"options.general.showTips"));		showTips.getModel().setSelected("on".equals(jEdit.getProperty(			"view.showTips")));		addComponent(showTips);		/* Show toolbar */		showToolbar = new JCheckBox(jEdit.getProperty(			"options.general.showToolbar"));		showToolbar.getModel().setSelected("on".equals(jEdit.getProperty(			"view.showToolbar")));		addComponent(showToolbar);		/* Show full path */		showFullPath = new JCheckBox(jEdit.getProperty(			"options.general.showFullPath"));		showFullPath.getModel().setSelected("on".equals(jEdit.getProperty(			"view.showFullPath")));		addComponent(showFullPath);	}