I am currently refactoring an application I made to be thread safe.
I have a JCheckBox
that I need to check. This JCheckBox
is referenced throughout the program in various different threads.
Can I simply call checkbox.isSelected()
or do I have to make this call using invokeLater
?
I'm finding it difficult to understand concurrency in general, but I'm getting there slowly but surely. If this is a stupid question, please tell me why so I can better my understanding.
Thank you.