private void initElements(String title, int size, Director director,
	    boolean editable) {

	// labels
	lName = new JLabel("Name");
	lForename = new JLabel("Vorname");
	lFamilyname = new JLabel("Nachname");
	lNationality = new JLabel("Nationalität");
	lBirthday = new JLabel("Geburtstag");
	lMovie = new JLabel("Filme");
	lAward = new JLabel("Auszeichnungen");

	// title in frame
	lTitle = new JLabel(title);
	// settings
	lTitle.setFont(new Font("Serif", Font.BOLD, size));

	if (director != null) {
	    tfName = new JTextField(director.getName(), 15);
	    tfForename = new JTextField(director.getForename(), 15);
	    tfFamilyname = new JTextField(director.getFamilyname(), 15);
	    tfNationality = new JTextField(director.getNationality(), 15);
	    tfBirthday = new JTextField(director.getBirthday(), 15);
	    // there can be more movies
	    taMovie = new JTextArea(5, 15);
	    if (director.getMovies() != null) {
		firstIteration = true;
		for (Movie movie : director.getMovies()) {
		    if (firstIteration) {
			taMovie.setText(movie.getTitle() + " ("
				+ movie.getYear() + ")");
			firstIteration = false;
		    } else {
			taMovie.append("\n" + movie.getTitle() + " ("
				+ movie.getYear() + ")");
		    }
		}
	    }
	    // there can be more awards
	    taAward = new JTextArea(5, 15);
	    if (director.getAwards() != null) {

		firstIteration = true;
		for (Award award : director.getAwards()) {
		    if (firstIteration) {
			taAward.setText(award.getAward() + " ("
				+ award.getYear() + ")");
			firstIteration = false;
		    } else {
			taAward.append("\n" + award.getAward() + " ("
				+ award.getYear() + ")");
		    }
		}
	    }

	} else {
	    // textfields
	    tfName = new JTextField(15);
	    tfForename = new JTextField(15);
	    tfFamilyname = new JTextField(15);
	    tfNationality = new JTextField(15);
	    tfBirthday = new JTextField(15);
	    // textareas
	    taMovie = new JTextArea(5, 15);
	    taAward = new JTextArea(5, 15);
	}

	// scrollpane
	spMovie = new JScrollPane(taMovie);
	spAward = new JScrollPane(taAward);

	// settings of textfields
	tfName.setEditable(editable);
	tfForename.setEditable(editable);
	tfFamilyname.setEditable(editable);
	tfNationality.setEditable(editable);
	tfBirthday.setEditable(editable);

	// settings of textarea
	taMovie.setEditable(false);
	taAward.setEditable(false);

	// settings of scrollpane
	spMovie.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
	spMovie.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
	spAward.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
	spAward.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);

    }