File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
how to pass string value from one class to another
Joined: Mar 13, 2004
Oct 13, 2004 18:46:00
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
Mr. C Lamont Gilbert
Joined: Oct 05, 2001
Oct 13, 2004 20:37:00
What type of classes are these and in what way should it be displayed?
Joined: Dec 06, 2001
Oct 13, 2004 23:12:00
Can you post more of the relevant code? Specifically, the declarations for the text fields involved here.
Java API Documentation
The Java Tutorial
I agree. Here's the link:
- it saves me about five hours per week
subject: how to pass string value from one class to another
Standalone JS File
Is System.out.println(String) Thread safe?
pass by value
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013