@Override
	public void mouseClicked(MouseEvent arg0) {
		JTable tab = (JTable)arg0.getSource();
		int row = tab.getSelectedRow();
		int column = tab.getSelectedColumn();
		if(tab.equals(tblFav)){
			if(column == 0){;
				Recipe rec = favList.get(row);
				createRecipeFrame(rec);
			} else {
				Recipe rec = favList.get(row);
				try {
					db.removeFavorite(rec);
				} catch (SQLException e) {
					e.printStackTrace();
				}
				JOptionPane.showMessageDialog(this, "Please refresh the View to see your changes.");
			}
		}
		if(tab.equals(tblPers)){
			if(column == 0){
				Recipe rec = persList.get(row);
				createRecipeFrame(rec);
			} else {
				Recipe rec = persList.get(row);
				try {
					db.removeRecipe(rec);
				} catch (SQLException e) {
					e.printStackTrace();
				}
				JOptionPane.showMessageDialog(this, "Please refresh the View to see your changes.");
			}
		}
		if(tab.equals(tblSearch)){
			Recipe rec = list.get(row);
			createRecipeFrame(rec);
		}
		
		revalidate();
		repaint();
	}