setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
	public OptionsDialog(View view)	{		super(view,jEdit.getProperty("options.title"),true);		view.showWaitCursor();		getContentPane().setLayout(new BorderLayout());		panes = new Vector();		cardPanel = new JPanel(new CardLayout());		cardPanel.setBorder(new CompoundBorder(new BevelBorder(			BevelBorder.RAISED), new EmptyBorder(2, 2, 2, 2)));		getContentPane().add(cardPanel, BorderLayout.CENTER);		paneNames = new DefaultListModel();		paneList = new JList(paneNames);		paneList.addListSelectionListener(this);		getContentPane().add(new JScrollPane(paneList),			BorderLayout.WEST);		JPanel buttons = new JPanel();		ok = new JButton(jEdit.getProperty("common.ok"));		ok.addActionListener(this);		buttons.add(ok);		getRootPane().setDefaultButton(ok);		cancel = new JButton(jEdit.getProperty("common.cancel"));		cancel.addActionListener(this);		buttons.add(cancel);		getContentPane().add(BorderLayout.SOUTH,buttons);		addOptionPane(new org.gjt.sp.jedit.options.GeneralOptionPane());		addOptionPane(new org.gjt.sp.jedit.options.EditorOptionPane());		addOptionPane(new org.gjt.sp.jedit.options.StyleOptionPane());		addOptionPane(new org.gjt.sp.jedit.options.FileFilterOptionPane());		addOptionPane(new org.gjt.sp.jedit.options.CommandShortcutsOptionPane());		addOptionPane(new org.gjt.sp.jedit.options.MacroShortcutsOptionPane());		addOptionPane(new org.gjt.sp.jedit.options.AbbrevsOptionPane());		// Query plugins for option panes		EditPlugin[] plugins = jEdit.getPlugins();		for(int i = 0; i < plugins.length; i++)		{			try			{				plugins[i].createOptionPanes(this);			}			catch(Throwable t)			{				Log.log(Log.ERROR,this,"Error creating option pane");				Log.log(Log.ERROR,this,t);			}		}		view.hideWaitCursor();		Dimension screen = getToolkit().getScreenSize();		pack();		setLocation((screen.width - getSize().width) / 2,			(screen.height - getSize().height) / 2);		setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);		show();	}