This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Swing / AWT / SWT and the fly likes Using JTextArea Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Using JTextArea " Watch "Using JTextArea " New topic
Author

Using JTextArea

dushantha Rathnayake
Ranch Hand

Joined: Feb 27, 2010
Posts: 103
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

Joined: Jun 09, 2003
Posts: 4632
is this a new problem, or just a continuation of your other thread?
dushantha Rathnayake
Ranch Hand

Joined: Feb 27, 2010
Posts: 103
Hi,

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

Thank you!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using JTextArea