public JSearchBox(SearchModel model, PreviewI popup){
		setLayout(new FlowLayout());
		this.searchButton = new JButton(SearchConstants.SEARCH_BUTTON_TEXT);
		this.searchButton.setPreferredSize(this.searchButtonSize);
		this.searchBox = new JTextField(SearchConstants.PLACE_HOLDER_TEXT);
		this.searchBox.setPreferredSize(this.searchBoxSize);
		add(this.searchBox);
		add(this.searchButton);
		
		this.setModel(model);
		this.setSearchPreview(popup);
		
		addObserverToModel();
		
		setPreferredSize(new Dimension(250, 30));
	}