regexp.addActionListener(new ActionHandler());
regexp.addActionListener(actionHandler);
	public SearchBar(View view)	{		super(new BorderLayout());		this.view = view;		Font boldFont = new Font("Dialog",Font.BOLD,10);		Font plainFont = new Font("Dialog",Font.PLAIN,10);		JLabel label = new JLabel(jEdit.getProperty("view.search.find"));		label.setFont(boldFont);		label.setBorder(new EmptyBorder(0,0,0,12));		add(label,BorderLayout.WEST);		Box box = new Box(BoxLayout.Y_AXIS);		box.add(Box.createGlue());		box.add(find = new HistoryTextField("find"));		find.setFont(plainFont);		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);		Box buttons = new Box(BoxLayout.X_AXIS);		buttons.add(Box.createHorizontalStrut(12));		buttons.add(ignoreCase = new JCheckBox(jEdit.getProperty(			"search.case")));		ignoreCase.setFont(boldFont);		ignoreCase.addActionListener(new ActionHandler());		ignoreCase.setMargin(margin);		buttons.add(Box.createHorizontalStrut(2));		buttons.add(regexp = new JCheckBox(jEdit.getProperty(			"search.regexp")));		regexp.setFont(boldFont);		regexp.addActionListener(new ActionHandler());		regexp.setMargin(margin);		buttons.add(Box.createHorizontalStrut(2));		buttons.add(hyperSearch = new JCheckBox(jEdit.getProperty(			"search.hypersearch")));		hyperSearch.setFont(boldFont);		hyperSearch.addActionListener(new ActionHandler());		hyperSearch.setMargin(margin);		update();		add(buttons,BorderLayout.EAST);	}