aspose file tools
The moose likes Swing / AWT / SWT and the fly likes urgent~~howto display text in jTextArea Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "urgent~~howto display text in jTextArea" Watch "urgent~~howto display text in jTextArea" New topic
Author

urgent~~howto display text in jTextArea

Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
hi, i wanna to display 2 or more strings on jTextArea in different line , i hv try using insert(), it seem not working, coz it will only display in a line and overwrite each other
ie:
2 strings
- string1 = "i am a boy"
- String = "i am a girl"
expected output

code:
--------------------------------------------------------------------------------
i am a boyi am a girl
--------------------------------------------------------------------------------
what i have done is

code:
--------------------------------------------------------------------------------
ii am a girl am a boy
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
solved by append()..tq
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: urgent~~howto display text in jTextArea
 
Similar Threads
Story Time
static modifier
i love you
LOTR
How to get JTextArea to show input as it is being added?