File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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