Home Get Value from JTextArea in Another Class
Reply: 0

Get Value from JTextArea in Another Class

user502
1#
user502 Published in May 23, 2018, 6:39 pm

Here's the problem. I had to fill a TextArea in Class B (tAreaB) with a value from TextArea in Class A (tAreaA).

I'm doing this in Class A:

tAreaA.setText("Value A");

How can I fill the tAreaB with same value as tAreaA? I have tried this in ClassB:

String value;
ClassA a = new ClassA();
value = a.tAreaA.getText();
tAreaB.setText(value);
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.352741 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO