electricBorders.getModel().setSelected(!"0".equals(jEdit.getProperty(
electricBorders.setSelected(!"0".equals(jEdit.getProperty(
	protected void _init()	{		/* Modes */		modes = jEdit.getModes();		String mode = jEdit.getProperty("buffer.defaultMode");		String[] modeNames = new String[modes.length];		int index = 0;		for(int i = 0; i < modes.length; i++)		{			Mode _mode = modes[i];			modeNames[i] = _mode.getName();			if(mode.equals(_mode.getName()))				index = i;		}		defaultMode = new JComboBox(modeNames);		defaultMode.setSelectedIndex(index);		addComponent(jEdit.getProperty("options.editor.defaultMode"),			defaultMode);		/* Font */		font = new FontComboBox();		font.setSelectedItem(jEdit.getProperty("view.font"));		addComponent(jEdit.getProperty("options.editor.font"),font);		/* Font style */		String[] styles = { jEdit.getProperty("options.editor.plain"),			jEdit.getProperty("options.editor.bold"),			jEdit.getProperty("options.editor.italic"),			jEdit.getProperty("options.editor.boldItalic") };		style = new JComboBox(styles);		try		{			style.setSelectedIndex(Integer.parseInt(jEdit				.getProperty("view.fontstyle")));		}		catch(NumberFormatException nf)		{		}		addComponent(jEdit.getProperty("options.editor.fontstyle"),			style);		/* Font size */		String[] sizes = { "9", "10", "12", "14", "18", "24" };		size = new JComboBox(sizes);		size.setEditable(true);		size.setSelectedItem(jEdit.getProperty("view.fontsize"));		addComponent(jEdit.getProperty("options.editor.fontsize"),size);		/* Tab size */		String[] tabSizes = { "2", "4", "8" };		tabSize = new JComboBox(tabSizes);		tabSize.setEditable(true);		tabSize.setSelectedItem(jEdit.getProperty("buffer.tabSize"));		addComponent(jEdit.getProperty("options.editor.tabSize"),tabSize);		/* Undo queue size */		undoCount = new JTextField(jEdit.getProperty("buffer.undoCount"));		addComponent(jEdit.getProperty("options.editor.undoCount"),undoCount);		/* Line highlight */		lineHighlight = new JCheckBox(jEdit.getProperty("options.editor"			+ ".lineHighlight"));		lineHighlight.getModel().setSelected(jEdit.getBooleanProperty(			"view.lineHighlight"));		addComponent(lineHighlight);		/* Bracket highlight */		bracketHighlight = new JCheckBox(jEdit.getProperty("options.editor"			+ ".bracketHighlight"));		bracketHighlight.getModel().setSelected(jEdit.getBooleanProperty(			"view.bracketHighlight"));		addComponent(bracketHighlight);		/* EOL markers */		eolMarkers = new JCheckBox(jEdit.getProperty("options.editor"			+ ".eolMarkers"));		eolMarkers.getModel().setSelected(jEdit.getBooleanProperty(			"view.eolMarkers"));		addComponent(eolMarkers);		/* Paint invalid */		paintInvalid = new JCheckBox(jEdit.getProperty("options.editor"			+ ".paintInvalid"));		paintInvalid.getModel().setSelected(jEdit.getBooleanProperty(			"view.paintInvalid"));		addComponent(paintInvalid);		/* Syntax highlighting */		syntax = new JCheckBox(jEdit.getProperty("options.editor"			+ ".syntax"));		syntax.getModel().setSelected(jEdit.getBooleanProperty(			"buffer.syntax"));		addComponent(syntax);		/* Indent on tab */		indentOnTab = new JCheckBox(jEdit.getProperty("options.editor"			+ ".indentOnTab"));		indentOnTab.getModel().setSelected(jEdit.getBooleanProperty(			"buffer.indentOnTab"));		addComponent(indentOnTab);		/* Indent on enter */		indentOnEnter = new JCheckBox(jEdit.getProperty("options.editor"			+ ".indentOnEnter"));		indentOnEnter.getModel().setSelected(jEdit.getBooleanProperty(			"buffer.indentOnEnter"));		addComponent(indentOnEnter);		/* Soft tabs */		noTabs = new JCheckBox(jEdit.getProperty("options.editor"			+ ".noTabs"));		noTabs.getModel().setSelected(jEdit.getBooleanProperty(			"buffer.noTabs"));		addComponent(noTabs);		/* Blinking caret */		blinkCaret = new JCheckBox(jEdit.getProperty("options.editor"			+ ".blinkCaret"));		blinkCaret.getModel().setSelected(jEdit.getBooleanProperty(			"view.caretBlink"));		addComponent(blinkCaret);		/* Block caret */		blockCaret = new JCheckBox(jEdit.getProperty("options.editor"			+ ".blockCaret"));		blockCaret.getModel().setSelected(jEdit.getBooleanProperty(			"view.blockCaret"));		addComponent(blockCaret);		/* Electric borders */		electricBorders = new JCheckBox(jEdit.getProperty("options.editor"			+ ".electricBorders"));		electricBorders.getModel().setSelected(!"0".equals(jEdit.getProperty(			"view.electricBorders")));		addComponent(electricBorders);		/* Smart home/end */		homeEnd = new JCheckBox(jEdit.getProperty("options.editor"			+ ".homeEnd"));		homeEnd.getModel().setSelected(jEdit.getBooleanProperty(			"view.homeEnd"));		addComponent(homeEnd);	}