I'm working on a simple application where is an JFrame, and 2 JPanels on it.
I would like to write an simple motion with these JPanels. I implemented a simple version, but there is some flickering on the screen. How could I solve it?
Here is my code: