09-23-2008
87,
0
Join Date: Apr 2008
Last Activity: 28 January 2014, 5:55 AM EST
Posts: 87
Thanks Given: 0
Thanked 0 Times in 0 Posts
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..