I'm working on a simple application. There is a JFrame, which contains a couple of JPanels.
I would like to move these panels, so make an simple motion. When I write an cycle, where the panel.setLocation(...) makes the changes, it would be a solution. But I think, there are more effective and more beautiful solutions.

One more thing, that I want to use only the swing and awt methods.
Can anybody help me? Or give me any ideas?