public void setButtonRate(JButton button) {
		button.addMouseListener(new MouseAdapter() {
			public void mousePressed(MouseEvent evt) {
				try {
					System.out.println("Rate Button for Media_Id: "
							+ wbview.getSelectedId());

					if (wbview.getSelectedRowCount() == 1) {
						wbview.invokeRateMediaDialog(wbview.getSelectedId());
					} else {
						throw new Exception("multiselect");
					}
				} catch (Exception e) {
					if (e.getMessage().equals("multiselect")) {
						wbview.showError("You have to select ONE media item!");
					} else {
						wbview.showError("You have to select a media item!");
					}
				}
			}
		});
	}