Hey guys
greetings
I'm having problems to update a JList, the numerical values that are in the JList are variables of other classes, and I would like that when I alter the value of these variables in other classes, and pressed the button "Refresh" in class FrameTeste the data in the JList would be updated according to the changes I made in the other classes, I created an example of two different classes of variables with different values and a class that is the frame, it has a JList and button "Refresh",
Exemple :
![enter image description here][1]
![enter image description here][2]
And the Frame Class :
[1]: http://i.stack.imgur.com/2kTum.jpg
[2]: http://i.stack.imgur.com/rVfV9.jpg
[3]: http://i.stack.imgur.com/2A2pd.jpg
when I change the value of variables that belong to OtherClass1 and OtherClass2 and press the refresh button in the Frame class, I would like the values to be updated JList, I've tried everything, but without success. Thank you guys.
greetings
I'm having problems to update a JList, the numerical values that are in the JList are variables of other classes, and I would like that when I alter the value of these variables in other classes, and pressed the button "Refresh" in class FrameTeste the data in the JList would be updated according to the changes I made in the other classes, I created an example of two different classes of variables with different values and a class that is the frame, it has a JList and button "Refresh",
Exemple :
![enter image description here][1]
![enter image description here][2]
And the Frame Class :
[1]: http://i.stack.imgur.com/2kTum.jpg
[2]: http://i.stack.imgur.com/rVfV9.jpg
[3]: http://i.stack.imgur.com/2A2pd.jpg
when I change the value of variables that belong to OtherClass1 and OtherClass2 and press the refresh button in the Frame class, I would like the values to be updated JList, I've tried everything, but without success. Thank you guys.