I met one problem while doing my project.
I have two classes.
One class is like a form which will take in input from the user using jTextField.
Another class is like a summary which will display what the user had entered in the form.
Can I display the input entered in the form at my latter class in jLabel or jTextField?
I tried the methods that I have found online but it does not help.
Any kind soul can provide me a simple example? I'll try to figure it myself.
Joined: Dec 28, 2009
So sorry for your time!
I have got it right already!
Yeah, don't. Static component fields are just about never a good idea. Instead, make it an instance field, make the method non-static and just use a reference to an existing object to call the method on.