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
posted
0
is this a new problem, or just a continuation of your other thread?
dushantha Rathnayake
Ranch Hand
Joined: Feb 27, 2010
Posts: 100
posted
0
Hi,
Yes this also like that. Now I,m trying with your code for JDialog.