@Override
	public void actionPerformed(ActionEvent e) {
		switch(e.getActionCommand()){
		case "search":
			LibrarianActionsControl.searchForBooks(this, new String[]{isbnField.getText(), (String) comboBox.getSelectedItem(), authorField.getText(), titleField.getText()});
			break;
		case "edit":
			CardLayout layout = (CardLayout) this.getParent().getLayout();
			String isbn = (String) table.getModel().getValueAt(table.getSelectedRow(), 0);
			this.getParent().add(new LibrarianEditBookPanel(isbn), "editBook");
			layout.show(this.getParent(), "editBook");
			clearResults();
			break;
		case "remove":
			CardLayout layout1 = (CardLayout) this.getParent().getLayout();
			String isbn1 = (String) table.getModel().getValueAt(table.getSelectedRow(), 0);
			this.getParent().add(new LibrarianRemoveBookPanel(isbn1), "editBook");
			layout1.show(this.getParent(), "editBook");
			clearResults();
			break;
		case "overdue":
			break;
		case "reservations":
			break;
		}		
	}