else if(source instanceof JComboBox || source instanceof JCheckBox)
else if(source == mode) { Mode _mode = jEdit.getMode((String) mode.getSelectedItem()); tabSize.setSelectedItem(_mode.getProperty( "tabSize")); indentSize.setSelectedItem(_mode.getProperty( "indentSize")); maxLineLen.setSelectedItem(_mode.getProperty( "maxLineLen")); indentOnTab.setSelected(_mode.getBooleanProperty( "indentOnTab")); indentOnEnter.setSelected(_mode.getBooleanProperty( "indentOnEnter")); syntax.setSelected(_mode.getBooleanProperty( "syntax")); noTabs.setSelected(_mode.getBooleanProperty( "noTabs")); updatePropsField(); } else
		public void actionPerformed(ActionEvent evt)		{			Object source = evt.getSource();			if(source == ok)				ok();			else if(source == cancel)				cancel();			else if(source instanceof JComboBox				|| source instanceof JCheckBox)				updatePropsField();		}