Java UI does not come up using txtContent.setLineWrap(true) API

Hello ,

I have code which runs on solaris using java 1.2.2 .. UI will not come up when i use the command "txtContent.setLineWrap(true);".. UI gets displayed if do not use it...
______________________________________________________
txtContent = new JTextArea(20,30);
//txtContent.setRows(20);
txtContent.setEditable(false);
txtContent.setLineWrap(true);
txtContent.setWrapStyleWord(true);

            JScrollPane scrlStatus = new JScrollPane\(txtContent\);

_________________________________________________________

Please let me the ways in which i could display using setLineWrap .. Or suggest some alternate with LineWrap functionality..