private void create(int initialValue, Color bg, String fieldTitle, String fieldlabel, boolean showResetBtn) {
        setPreferredSize(new Dimension(GUIConstants.DEFAULT_FIELD_WIDTH, FIELDHEIGHT));
        setBackground(bg);
        setBorder(BorderFactory.createTitledBorder(fieldTitle));
        setLayout(new VerticalLayout(5, VerticalLayout.CENTER));

        JPanel panel = new JPanel();
        panel.setBackground(bg);
        this.add(panel);

        JLabel label = new JLabel(fieldlabel + ": ");
        panel.add(label);

        this.numberfield = new JTextField();
        this.numberfield.setColumns(this.numberLength);
        this.numberfield.setToolTipText(Field.strHeightTooltip);
        this.numberfield.setText(initialValue + "");
        panel.add(this.numberfield);

        this.numberfield.addKeyListener(new KeyAdapter() {
            @Override
            public void keyReleased(KeyEvent e) {
                if (controlSizeInput(Numberfield.this.numberfield)
                        && controlSizeInputLength(Numberfield.this.numberfield, Numberfield.this.numberLength)) {
                    Numberfield.this.numberfield.setForeground(Color.BLACK);
                    onKeyReleased(Numberfield.this.numberfield.getText());
                } else {
                    Numberfield.this.numberfield.setForeground(Color.RED);
                    onKeyReleased(null);
                }
            }
        });

        JPanel panel2 = new JPanel();
        panel2.setBackground(bg);
        this.add(panel2);

        JButton resetBtn = new JButton(Field.strReset);
        resetBtn.setEnabled(showResetBtn);
        resetBtn.setBackground(bg);
        panel2.add(resetBtn);

        resetBtn.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseClicked(MouseEvent e) {
                resetOnClick();
            }
        });
    }