java textfield size fixed netbeans code example Example: textfield set size textField.setColumns(...);