public MyFrame() throws ParseException {
		Object[] alleTemplates = new Object[Garage.getAlleTemplates().size() + 1];

		alleTemplates[0] = "   --Select--";
		for (int i = 0; i < alleTemplates.length - 1; i++) {
			alleTemplates[i + 1] = Garage.getAlleTemplates().get(i).getTemplateNaam();
		}

		setLayout(new BorderLayout());

		panel1 = new JPanel();
		panel2 = new JPanel();
		panel3 = new JPanel();
		panel4 = new JPanel();

		panel1.setLayout(new FlowLayout());
		panel2.setLayout(new FlowLayout());
		panel3.setLayout(new FlowLayout());
		panel4.setLayout(new FlowLayout());

		tabs = new JTabbedPane();

		box1 = new JComboBox(alleTemplates);

		genereren = new JButton("Genereren");
		genereren.addActionListener(this);

		for (Klant a : Garage.getKlanten()) {
			model.addRow(new Object[] { false, a.getNaam(), a.getTussenvoegsel(), a.getAchternaam(), new Integer(a.getLeeftijd()), a.getAdres().getWoonplaats(), dateFormat.format(a.getLaatsteOnderhoud()), dateFormat.format(a.getBezoek()) });
		}

		tabel = new JTable(model) {
			public boolean isCellEditable(int row, int col) {
				switch (col) {
					case 0:
						return true;
					default:
						return false;
				}
			}

			@Override
			public Class getColumnClass(int column) {
				switch (column) {
					case 0:
						return Boolean.class;
					case 1:
						return String.class;
					case 2:
						return String.class;
					case 3:
						return String.class;
					case 4:
						return String.class;
					case 5:
						return String.class;
					default:
						return String.class;
				}
			}
		};
		tabel.setAutoCreateRowSorter(true);
		tabel.getTableHeader().setReorderingAllowed(false);
		tabel.getTableHeader().setResizingAllowed(false);

		tabelPane = new JScrollPane(tabel);
		tabelPane.setPreferredSize(new Dimension(880, 475));

		openBrieven = new JButton("Bekijk gegenereerde Brieven");
		openBrieven.addActionListener(this);

		panel1.add(box1);
		panel1.add(genereren);
		panel1.add(openBrieven);
		panel1.add(tabelPane);

		maakAan = new JButton("Maak template aan");
		maakAan.addActionListener(this);
		clear = new JButton("Leeg veld");
		clear.addActionListener(this);

		label1 = new JLabel("Templatenaam:");
		field1 = new JTextField(20);
		tArea1 = new JTextArea(31, 80);
		sPane1 = new JScrollPane(tArea1);
		label = new JLabel("Mogelijke tags:");
		box = new JComboBox(Template.getTags());
		box.addActionListener(this);

		panel2.add(label);
		panel2.add(box);
		panel2.add(label1);
		panel2.add(field1);
		panel2.add(maakAan);
		panel2.add(clear);
		panel2.add(sPane1);

		box2 = new JComboBox(alleTemplates);
		box2.addActionListener(this);

		wijzig = new JButton("Wijzig Template");
		wijzig.addActionListener(this);
		verwijder = new JButton("Verwijder template");
		verwijder.addActionListener(this);

		tArea2 = new JTextArea(31, 80);
		sPane2 = new JScrollPane(tArea2);

		panel3.add(box2);
		panel3.add(wijzig);
		panel3.add(verwijder);
		panel3.add(sPane2);

		tabs.addTab("Brieven Genereren", panel1);
		tabs.addTab("Template Aanmaken", panel2);
		tabs.addTab("Template Wijzigen", panel3);
		tabs.setPreferredSize(new Dimension(890, 550));

		add(tabs);
	}