This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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