private void initUI() {

		JPanel panel = new JPanel();
		panel.setLayout(new BorderLayout());
		panel.setBorder(BorderFactory.createEmptyBorder(20, 20, 20, 20));

		GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();

		String[] fonts = ge.getAvailableFontFamilyNames();

		list = new JList(fonts);
		list.addListSelectionListener(new ListSelectionListener() {
			@Override
			public void valueChanged(ListSelectionEvent e) {
				if (!e.getValueIsAdjusting()) {
					String name = (String) list.getSelectedValue();
					Font font = new Font(name, Font.PLAIN, 12);
					label.setFont(font);
				}
			}
		});

		JScrollPane pane = new JScrollPane();
		pane.getViewport().add(list);
		pane.setPreferredSize(new Dimension(250, 200));
		panel.add(pane);

		label = new JLabel("Aguirre, der Zorn Gottes");
		label.setFont(new Font("Serif", Font.PLAIN, 12));
		add(label, BorderLayout.SOUTH);

		add(panel);

		pack();
		setTitle("JList");
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		setLocationRelativeTo(null);
	}