This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using JTextArea

 
dushantha Rathnayake
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a JTextArea inside of a JDialog. this JDialog is a sub class of my application. So I want to call it many times. After call first time I close it and try it for second time. But the problem is the previous data(first time data) always in there. Actually I use this JTextArea for print my database data. It means, in opening time the table data have to set on to textarea and I(user) can only print it. In opening time, I do " textarea.setText(database data) " and " textarea.setEditable(false) " . How can I close this JTextArea. In second time the variables are ready to second data set. but it not set as text on to JTextArea.What I want to do now? Please Help me.

Thank you!
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is this a new problem, or just a continuation of your other thread?
 
dushantha Rathnayake
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Yes this also like that. Now I,m trying with your code for JDialog.

Thank you!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic