Not very useful info
In this case, i guess you are using Netbeans form editor to design your forms and dont know how to pass data between your forms.
Swing forms are just classes in Java. The difference is that Netbeans protects some of the methods an prohibit changing them inside editor. (This is for protecting the two way automatic transformation between the class and the form designer)
I recommend you to click on your third class and add the name as a string parameter to the constructor of the class. But since netbeans will not allow you to change the constructor type from editor. You should click "Code" tab in the Properties view, select "Custom Creation Code" and call your modified constructor there.