protected boolean controlSizeInputLength(JTextField textfield, int maxLength) {
        boolean ret = true;
        String tmp = textfield.getText();

        if (tmp.length() > maxLength) {
            textfield.setText(tmp.substring(0, maxLength));
            ret = false;
        }

        return ret;
    }