@Override
		public void valueChanged(ListSelectionEvent arg0) {
			int select = table.getSelectedRow();
			
			if (select != -1) {
				Item item = null;
				String title = (String) table.getValueAt(select, 0);
				String author = (String) table.getValueAt(select, 1);
				String genre = (String) table.getValueAt(select, 2);
				double length = (double) table.getValueAt(select, 3);
				int rating = (int) table.getValueAt(select, 4);
				ItemType type = (ItemType) table.getValueAt(select, 5);
				try {
					switch (type) {
					case BOOK:
						item = new Music(title, author, length, 
								genre, rating, Item.ItemType.BOOK);
						break;
					case MUSIC:
						item = new Music(title, author, length, genre,
								rating, Item.ItemType.MUSIC);
						break;
					default:
						System.out.println("Missing type?");
						break;
					}	
				}
				catch (IllegalItemException e) {
						e.printStackTrace();
				}
				if (item != null) {
					new InfoDialog(MainFrame.instance, item, image);
				}
			}
		}