question: public static JTextArea createTextArea ( String title , String entry , JComponent parent , int rows , int cols ) { JPanel pal = PaletteHelper . createHorizontalPanel ( null ) ; JLabel label = new JLabel ( title ) ; label . setHorizontalTextPosition ( JLabel . RIGHT ) ; JTextArea ta = new JTextArea ( entry , rows , cols ) ; JScrollPane jsp = new JScrollPane ( ta ) ; label . setLabelFor ( jsp ) ; pal . add ( label ) ; pal . add ( jsp ) ; parent . add ( pal ) ; return ta ; }
target:  Create and add a text area to a JComponent.