get the details from GUI screen into an java object.
I need to find solution for the below requiremet.
I have created 2 classes, say class1.java,class2.java.
Here class2.java uses GUI screen using swing.
I need to get the details user entered in GUI screen through textbox into class1 after the user click enter button.
So far i did like, I have created a object obj2 of class2 in class1 and call the GUI screen. But i couldnot able to get the details entered by user into class1.
If anybody know, please tell how to get those details from GUI screen to