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

后端 未结 5 418
没有蜡笔的小新
没有蜡笔的小新 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:52

    Well you have very nice way to do it.

    Define new Static Final Objects of that class. and Save that value into the Object.

    and in other Class u can easily use that objects and as well as that values. By using

    CLASSNAME.OBJECT VALUE.

    use that.

提交回复
热议问题