The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Passing/Sharing variables between classes

Posted by Craig Snowbarger on April 03, 2001 at 3:49 PM

I'm trying to pass a variable between two public classes. I know it's possible, I just don't know how. Let me explain. There are two classes, a main class and a login class. I need to make the textfield variables available to my main class, but my main class is not seeing the textfield variables I created in my login class. Can somebody give me an example of what to do? I would be glad to explain more. Thanks in advance for your help.



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us