How to avoid screen flashing when updating something on the UI ?
Hi, I am using Swing for my GUI application
I a have JLabel and a icon that I modiy that when a tree is clicked
That works fine, but when I modify them from another class, screen gets flashes ?
Main Class -> Produces GUI class (JLabel updating works fine)
Main Class -> Produces PickBehaviour (java3D)
that PichHebavious modifies Jlabel and icon by owner.GUI
its owner is my Main class. That flashes screen and my model moves a little bit.
Any Idea, how can I avoid it ?