private void create(String initialValue, Color bg, String fieldTitle) {
        setPreferredSize(new Dimension(GUIConstants.DEFAULT_FIELD_WIDTH, FIELDHEIGHT));
        setBackground(bg);
        setBorder(BorderFactory.createTitledBorder(fieldTitle));

        final JTextField contentInputField = new JTextField(initialValue);
        contentInputField.setPreferredSize(GUIConstants.DEFAULT_BUTTON_DIM);
        contentInputField.addKeyListener(new KeyAdapter() {
            @Override
            public void keyReleased(KeyEvent e) {
                if (contentInputField.getText().length() <= MAXCONTENT) {
                    contentUpdate(contentInputField.getText());

                } else {
                    while (contentInputField.getText().length() > MAXCONTENT) {
                        contentInputField.setText(contentInputField.getText().substring(0,
                                contentInputField.getText().length() - 1));
                    }
                }
            }
        });
        this.add(contentInputField);
    }