add(new JLabel("using")); comboBox = new JComboBox(new String[] { "Yahoo!", "Directory" }); add(comboBox); add(Box.createHorizontalStrut(15));
	public SearchStringPanel(SearchModel searchModel, ProgressModel progressModel) {		super(new FlowLayout(FlowLayout.LEFT));				if (searchModel == null)			throw new NullPointerException("searchModel == null");		this.searchModel = searchModel;				if (progressModel == null)			throw new NullPointerException("progressModel == null");		this.progressModel = progressModel;		progressModel.addObserver(this);				add(new JLabel("Search for"));		textField = new JTextField();		textField.setColumns(20);		textField.setActionCommand("find");		textField.addActionListener(this);		add(textField);		findButton = new JButton("Find now");		findButton.setActionCommand("find");		findButton.addActionListener(this);		add(findButton);		stopButton = new JButton("Stop");		stopButton.setActionCommand("stop");		stopButton.addActionListener(this);		stopButton.setEnabled(false);		add(stopButton);	}