How to pass a variable value from one JFrame to Another JFrame in Netbeans

后端 未结 5 414
没有蜡笔的小新
没有蜡笔的小新 2020-12-19 10:18

I have two JFrames login.java and account.java
I need to get the username from the login.java page and put it in a v

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-19 10:45

    Instead of Using JFrames for passing values between different forms you can use CardLayout which will persist your data which you have entered in the previous form. All you have to do is Create a JFrameForm and add panels to it.

提交回复
热议问题