my issue with jTextArea

Hi,

my application reads from a text file and store a long line of string into an attribute. this attribute is then later called to be displayed onto jTextArea.

the text is shown in one long line as how it was read, causing a horizontal scroll bar. so i set linewrap to true, now the scroll bar is gone but the text is showing unorganised.

For example:

Procedures: Melt the chocolate on a bain marie aka doubl

e boiler. Whip the cream to soft peaks and refrigerate for a

bout 10 minutes. Step 1: Whisk together the egg yolk and t

he sugar for 2 minutes.

my point is....is there a way in formatting this? so the text is readable and organised properly?

suggestions r much appreciated!

[744 byte] By [CUIDAa] at [2007-11-26 19:06:12]
# 1
also how to add picture associating with the attribute and show on jTextArea? is that appropriate?
CUIDAa at 2007-7-9 20:57:15 > top of Java-index,Desktop,Core GUI APIs...
# 2
textArea.setWrapStyleWord(true);
Michael_Dunna at 2007-7-9 20:57:15 > top of Java-index,Desktop,Core GUI APIs...
# 3
thanks for the nice and concise solution mate!
CUIDAa at 2007-7-9 20:57:15 > top of Java-index,Desktop,Core GUI APIs...