private void setDetails(Product product) {
		List<Offer> offers = new ArrayList<Offer>();
		try {
			offers = mdi.getOffers(product);
		} catch (Exception e) {
			e.printStackTrace(System.err);
		}


		try {
			// change: Ausgabe der Asin
			att[0].setText("" + product.getAsin());
		} catch (Exception e) {
			att[0].setText("");
		}
		att[1].setText("New");
		try {
			att[2].setText(product.getAvgRating().toString());
		} catch (Exception e) {
			att[2].setText("");
		}
		try {
			att[3].setText(product.getSalesRank().toString());
		} catch (Exception e) {
			att[3].setText("");
		}

		att[4].setText(product.isAvailable() ? "YES" : "NO");
		if (product.isAvailable()) att[4].setBackground(java.awt.Color.GREEN);
		else att[4].setBackground(java.awt.Color.RED);
		att[5].setText(product.isBook() ? "Buch" : product.isDvd() ? "DVD" : product.isMusic() ? "Musik" : "unbek.");
		try {
			att[6].setText(product.getTitle());
		} catch (Exception e) {
			att[6].setText("");
		}

		try {
			URL url = new URL(product.getPicUrl());
			ImageIcon pic = new ImageIcon(url);
			JLabel lpic = new JLabel(pic);
			//change: damit die Bilder nur einmal angezeigt werden
			picture.removeAll();
			picture.add(lpic);
		} catch (Exception e) {
		}

		price.removeAllItems();
		for (Offer offer : offers) {
			price.addItem(String.format("%.2f %s %s", offer.getPrice(), offer.getCurrency(), offer.getLocation()));
		}
		price.updateUI();

		String[] header = null;
		List<String[]> data = new ArrayList<String[]>();
		switch (product.getType()) {
			case book:
				header = new String[]{"ISBN", "Seiten", "Publikation", "Verleger", "Autor"};
				media.definitions.Book book = mdi.getBook(product.getAsin());
				String[] dumpb = new String[5];
				try {
					dumpb[0] = book.getIsbn();
				} catch (Exception e) {
				}
				try {
					dumpb[1] = book.getPages().toString();
				} catch (Exception e) {
				}
				try {
					dumpb[2] = book.getPubDate().toString();
				} catch (Exception e) {
				}
				try {
					dumpb[3] = book.getPublishers().iterator().next().getName();
				} catch (Exception e) {
				}
				try {
					dumpb[4] = book.getAuthors().iterator().next().getName();
				} catch (Exception e) {
				}
				data.add(dumpb);
				break;


			case dvd:
				header = new String[]{"Format", "Region", "Laufzeit", "Actor", "Creator", "Direktor"};
				media.definitions.DVD dvd = mdi.getDVD(product.getAsin());
				String[] dumpd = new String[6];
				try {
					dumpd[0] = dvd.getFormat();
				} catch (Exception e) {
				}
				try {
					dumpd[1] = dvd.getRegionCode().toString();
				} catch (Exception e) {
				}
				try {
					dumpd[2] = dvd.getRunningTime().toString();
				} catch (Exception e) {
				}
				try {
					dumpd[3] = dvd.getActors().iterator().next().getName();
				} catch (Exception e) {
				}
				try {
					dumpd[4] = dvd.getCreators().iterator().next().getName();
				} catch (Exception e) {
				}
				try {
					dumpd[5] = dvd.getDirectors().iterator().next().getName();
				} catch (Exception e) {
				}
				data.add(dumpd);
				break;


			case music:
				header = new String[]{"Release", "Tracks", "Labels", "Artist"};
				media.definitions.Music music = mdi.getMusic(product.getAsin());
				String[] dumpm = new String[4];
				try {
					dumpm[0] = music.getReleaseDate().toString();
				} catch (Exception e) {
				}
				try {
					List<Track> tracks=music.getTracks();
					for(int j=0;j<tracks.size();j++){
							if (j != 0) dumpm[1] += ", " + tracks.get(j).getName();
							else dumpm[1] = tracks.get(j).getName();
					}
					/*
					 String[] tracks = music.getTracks().toArray(new String[0]);
					 

					for (int i = 0; i < tracks.length; i++)
						if (i != 0) dumpm[1] += ", " + tracks[i];
						else dumpm[1] = tracks[0];*/
				} catch (Exception e) {
				}
				try {
					dumpm[2] = music.getLabels().iterator().next().getName();
				} catch (Exception e) {
				}
				try {
					dumpm[3] = music.getArtists().iterator().next().getName();
				} catch (Exception e) {
				}
				data.add(dumpm);
				break;

		}

		this.table.fillTable(header, data);
	}