简体   繁体   中英

Pass textfield values of one JFrame to another JFrame

Hi i am new to Java and it will be a great help if someone can give me a clear solution for my question.

There are two JFrames in my project such as Client1 and Client2. In client1, there are some textfields and a button named as "NEXT". In Client2, there are another textields and a "Submit" button.

When click Submit button, all the textfield values (both from Client1 and Client2) are saved to a database table.

My question is, How to pass and keep values of textfields in Client1 to Client2 for saving them in database.

使用构造函数创建第二个框架时,可以传递它们。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM