Hi All
I have a Java GUI that has a number of text fields, the values of which are populated from static variable in another class.
I am interested to know what the best way is to make it so that when the variable is changed in another class, the update is instantly reflected on the GUI.
If any one could make a suggestion on an efficient way to do this it would be highly appreciated.
Many Thanks for your replies in advance
Edit:
Additional Details
- Using Swing
- Updates would ideally be real time