JPanel panel = new JPanel(); panel.add(Box.createHorizontalStrut(5));
JPanel panel = new JPanel(new FlowLayout(FlowLayout.CENTER,5,0)); panel.add(Box.createHorizontalStrut(2));
	public SearchBar(View view)	{		this.view = view;		setFloatable(false);		setLayout(new BorderLayout());		add(new JLabel(jEdit.getProperty("view.search.find")),			BorderLayout.WEST);		Box box = new Box(BoxLayout.Y_AXIS);		box.add(Box.createGlue());		box.add(find = new HistoryTextField("find"));		Dimension min = find.getMinimumSize();		min.width = Integer.MAX_VALUE;		find.setMaximumSize(min);		ActionHandler handler = new ActionHandler();		find.addKeyListener(new KeyHandler());		find.addActionListener(new ActionHandler());		find.getDocument().addDocumentListener(new DocumentHandler());		box.add(Box.createGlue());		add(box,BorderLayout.CENTER);		Insets margin = new Insets(1,1,1,1);		JPanel panel = new JPanel();		panel.add(Box.createHorizontalStrut(5));		panel.add(incremental = new JCheckBox(jEdit.getProperty(			"view.search.incremental")));		incremental.addActionListener(new ActionHandler());		incremental.setMargin(margin);		panel.add(ignoreCase = new JCheckBox(jEdit.getProperty(			"search.ignoreCase")));		ignoreCase.addActionListener(new ActionHandler());		ignoreCase.setMargin(margin);		panel.add(regexp = new JCheckBox(jEdit.getProperty(			"search.regexp")));		regexp.addActionListener(new ActionHandler());		regexp.setMargin(margin);		panel.add(multifile = new JCheckBox());		multifile.addActionListener(new ActionHandler());		multifile.setMargin(margin);		panel.add(multifileBtn = new JButton(jEdit.getProperty(			"search.multifile")));		multifileBtn.addActionListener(new ActionHandler());		multifileBtn.setMargin(margin);		update();		add(panel,BorderLayout.EAST);	}