question: private void createTextField ( JPanel parentPanel , String label , JTextField textField , int fieldWidth ) { JPanel panel = new JPanel ( ) ; panel . setLayout ( null ) ; parentPanel . add ( panel ) ; JLabel lblName = new JLabel ( label ) ; lblName . setHorizontalAlignment ( SwingConstants . TRAILING ) ; lblName . setBounds ( LABEL_X_START , 0 , LABEL_WIDTH , FIELD_HEIGHT ) ; panel . add ( lblName ) ; textField . setBounds ( LABEL_X_START + LABEL_WIDTH + FIELD_X_OFFSET , 0 , fieldWidth , FIELD_HEIGHT ) ; textField . setColumns ( 30 ) ; panel . add ( textField ) ; }
target:  Creates the text field.