show();
	public SearchDialog(View view, String defaultFind)	{		super(view,jEdit.getProperty("search.title"),false);		this.view = view;		JPanel content = new JPanel(new BorderLayout());		content.setBorder(new EmptyBorder(0,12,12,12));		setContentPane(content);		find = new HistoryTextField("find");		find.setText(defaultFind);		replace = new HistoryTextField("replace");		keepDialog = new JCheckBox(jEdit.getProperty(			"search.keepDialog"));		keepDialog.setMnemonic(jEdit.getProperty("search.keepDialog"			+ ".mnemonic").charAt(0));		ignoreCase = new JCheckBox(jEdit.getProperty(			"search.ignoreCase"));		ignoreCase.setMnemonic(jEdit.getProperty("search.ignoreCase"			+ ".mnemonic").charAt(0));		regexp = new JCheckBox(jEdit.getProperty(			"search.regexp"));		regexp.setMnemonic(jEdit.getProperty("search.regexp.mnemonic")			.charAt(0));		multifile = new JCheckBox();		multifileBtn = new JButton(jEdit.getProperty(			"search.multifile"));		multifileBtn.setMnemonic(jEdit.getProperty("search.multifile"			+ ".mnemonic").charAt(0));		findBtn = new JButton(jEdit.getProperty("search.findBtn"));		replaceBtn = new JButton(jEdit.getProperty("search.replaceBtn"));		replaceBtn.setMnemonic(jEdit.getProperty("search.replaceBtn"			+ ".mnemonic").charAt(0));		replaceFind = new JButton(jEdit.getProperty("search.replaceFind"));		replaceFind.setMnemonic(jEdit.getProperty("search.replaceFind"			+ ".mnemonic").charAt(0));		replaceAll = new JButton(jEdit.getProperty("search.replaceAll"));		replaceAll.setMnemonic(jEdit.getProperty("search.replaceAll"			+ ".mnemonic").charAt(0));		close = new JButton(jEdit.getProperty("common.close"));		JPanel panel = new JPanel(new GridLayout(2,1));		JPanel panel2 = new JPanel(new BorderLayout());		JLabel label = new JLabel(jEdit.getProperty("search.find"));		label.setDisplayedMnemonic(jEdit.getProperty("search.find.mnemonic")			.charAt(0));		label.setLabelFor(find);		label.setBorder(new EmptyBorder(12,0,2,0));		panel2.add(BorderLayout.NORTH,label);		panel2.add(BorderLayout.CENTER,find);		panel.add(panel2);		panel2 = new JPanel(new BorderLayout());		label = new JLabel(jEdit.getProperty("search.replace"));		label.setDisplayedMnemonic(jEdit.getProperty("search.replace.mnemonic")			.charAt(0));		label.setLabelFor(replace);		label.setBorder(new EmptyBorder(12,0,2,0));		panel2.add(BorderLayout.NORTH,label);		panel2.add(BorderLayout.CENTER,replace);		panel.add(panel2);		content.add(BorderLayout.NORTH,panel);		panel = new JPanel();		panel.setLayout(new BoxLayout(panel,BoxLayout.X_AXIS));		panel.setBorder(new EmptyBorder(6,0,12,0));		panel.add(Box.createGlue());		panel.add(keepDialog);		panel.add(Box.createHorizontalStrut(2));		panel.add(ignoreCase);		panel.add(Box.createHorizontalStrut(2));		panel.add(regexp);		panel.add(Box.createHorizontalStrut(2));		panel.add(multifile);		panel.add(multifileBtn);		panel.add(Box.createGlue());		content.add(BorderLayout.CENTER,panel);		Box box = new Box(BoxLayout.X_AXIS);		box.add(Box.createGlue());		box.add(findBtn);		box.add(Box.createHorizontalStrut(6));		box.add(replaceBtn);		box.add(Box.createHorizontalStrut(6));		box.add(replaceFind);		box.add(Box.createHorizontalStrut(6));		box.add(replaceAll);		box.add(Box.createHorizontalStrut(6));		box.add(close);		box.add(Box.createGlue());		getRootPane().setDefaultButton(findBtn);		content.add(BorderLayout.SOUTH,box);		ActionHandler actionListener = new ActionHandler();		find.addActionListener(actionListener);		replace.addActionListener(actionListener);		multifile.addActionListener(actionListener);		multifileBtn.addActionListener(actionListener);		findBtn.addActionListener(actionListener);		replaceBtn.addActionListener(actionListener);		replaceFind.addActionListener(actionListener);		replaceAll.addActionListener(actionListener);		close.addActionListener(actionListener);		GUIUtilities.requestFocus(this,find);		pack();		// don't remember the width and height of the dialog box,		// so that people upgrading from jEdit 2.3 don't get a		// dialog box that is way too small (since its size and		// layout has changed over the versions, a size that used		// to make sense might no longer)		jEdit.unsetProperty("search.width");		jEdit.unsetProperty("search.height");		GUIUtilities.loadGeometry(this,"search");		show();	}