public CustomerPanel(Maintenance parent) throws SQLException {
this.parent = parent;
nameField = new LimitedTextField(GUI.MAX_LABEL_LENGTH, GUI.FIELD);
nameField.addKeyListener(getKeyListener());
contactPersonField = new LimitedTextField(GUI.MAX_LABEL_LENGTH, GUI.FIELD);
contactPersonField.addKeyListener(getKeyListener());
adress1Field = new LimitedTextField(GUI.MAX_LABEL_LENGTH, GUI.FIELD);
adress1Field.addKeyListener(getKeyListener());
adress2Field = new LimitedTextField(GUI.MAX_LABEL_LENGTH, GUI.FIELD);
adress2Field.addKeyListener(getKeyListener());
this.setPreferredSize(new Dimension(360, 210));
this.setBorder(BorderFactory.createTitledBorder("Kunde"));
this.setLayout(new BorderLayout());
this.add(getButtonPanel(), BorderLayout.NORTH);
JScrollPane scrollPane = new JScrollPane(getList());
scrollPane.setPreferredSize(GUI.LIST);
this.add(scrollPane, BorderLayout.LINE_START);
this.add(getCenterPanel(), BorderLayout.CENTER);
getSaveButton().setEnabled(false);
getDeleteButton().setEnabled(false);
update(0);
}