Is it possible to update a JFrame with data from another JFrame? Like, i change data on the right JFrame, then the data on the left JFrame would automatically update?
For help in greater depth, consider giving us greater depth on your question.
Edit
You state:
The other JFrame is in another class. If you click a JButton the JFrame in another class will popup and it will update the JLabel in there. the 2 jframes is not in the same class.
If you're still confused, then please create a small compilable and runnable program that shows us your problem, an sscce .
Edit 2
For an example of just what I'm suggesting, please see my answers and code here:
I don't know why you have two but you could create a super or extend the JFrame. There are also many various inheritance practices to use.
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.