Java datafile sharing between classes
问题 I'm making a small program that reads from a file (Serialized objectInputStream), which is a registry list where each entry has a boolean variable that is set to true or false. In this program I have two separate JPanel-classes. One, the A-class, that can change the value of these variables, and the other, the B-class, checks if these variables are true or false. These two classes are created under a gui-class with main-method. If I change the variables in the A-class, how can I see the new