0

i'm using eclipse platform and window builder pro within. I've already created new project (window builder -> swing designer -> application window); Now I want my app to show some 2D animation (for example rectangle that moves) without blinking screen. What's the best way to do that? Right now i have only these methods in my code: MainWindow() constructor, initialize() and main(String[] args)

I've already read some info about displaying a 2D Graphics, but they all use different components and idk which way is the best and i don't always understand the methods that they use.

user1049280
  • 5,176
  • 8
  • 35
  • 52

2 Answers2

6

A simple animation demo I wrote a while ago to get you started (has some other dependencies within the project)

http://tus.svn.sourceforge.net/viewvc/tus/tjacobs/animation/

ControlAltDel
  • 33,923
  • 10
  • 53
  • 80
4

I recently made an open-source application with layout animations. For this, I used a very simple animation engine I made, the Universal Tween Engine. It is generic enough to animate any object of any java project, not just swing components.

The new version of the application is not released yet, but as soon as I'll have the time, I'll share every source. You may have completed your project long ago, but I hope the answer may still be useful :)

enter image description here

Aurelien Ribon
  • 7,548
  • 3
  • 43
  • 54