How to take user input of one form and assign it to a variable in another form in java?

Shammikit

Honorable
Nov 30, 2013
35
0
10,580
i have a textfield to get user input in my form 1.i want to get the text user inputs into that textfield from that form and assign it to a variable in form2. is this possible?