how to get width of text filed in swing code example Example: textfield set size textField.setColumns(...);