question: public static JTextField createTextEntry ( String title , String entry , JComponent parent ) { JPanel pal = PaletteHelper . createHorizontalPanel ( null ) ; JLabel label = new JLabel ( title ) ; label . setHorizontalTextPosition ( JLabel . RIGHT ) ; JTextField tf = new JTextField ( entry ) ; label . setLabelFor ( tf ) ; pal . add ( label ) ; pal . add ( tf ) ; parent . add ( pal ) ; return tf ; }
target:  Create and add a text entry field to a JComponent.