I have 2 classes. The first class turns a boolean value to true when you click on a specific location, the second class calls frame.removeAll() and frame.add(new CanvasSelect()) If the boolean in the first class is true. It seems to only check the boolean value once.
Is there any way to make the second class constantly check the boolean value in the first class?
you can use code snippets like give below and put them into a thread which always run parallel to your main code
Or an event can be raised on the click of that particular control which checks value of
_valand performs actions