I have a class name Foo that extends JFrame. The Foo class has several components and one object x as private fields and those components never use object x or vice versa (means components are completely independent on x). Of course the instantiation of Foo class is placed inside EDT but situation is I'm going to change value of object x from non EDT thread like (Foo.x.getValue() == ..... ). Should it be placed inside EDT? If it's gonna look like this:
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
foo.x.setValue(newValue);
}
});