This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes how to pass string value from one class to another Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to pass string value from one class to another" Watch "how to pass string value from one class to another" New topic
Author

how to pass string value from one class to another

Benjamin Mulder
Greenhorn

Joined: Mar 13, 2004
Posts: 18
let me explain...

on classA I have:


I want to pass "hello world" to class B's jTextArea.

So I put on the button method.



but nothing happens on class B. jTextAreaClassB doesn't display "hello world" from jTextAreaClassA.

Thanks in advance

Ben
Mr. C Lamont Gilbert
Ranch Hand

Joined: Oct 05, 2001
Posts: 1170

What type of classes are these and in what way should it be displayed?
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
Can you post more of the relevant code? Specifically, the declarations for the text fields involved here.

Layne


Java API Documentation
The Java Tutorial
 
jQuery in Action, 2nd edition
 
subject: how to pass string value from one class to another
 
Similar Threads
Standalone JS File
Method parameter
pass by value
system properties
Is System.out.println(String) Thread safe?