wood burning stoves*
The moose likes Swing / AWT / SWT and the fly likes Animated Line for sorting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Animated Line for sorting" Watch "Animated Line for sorting" New topic
Author

Animated Line for sorting

Kalabaw moo
Ranch Hand

Joined: May 26, 2009
Posts: 61
I have created an applet that will show the graphical representation of bubble sort but the problem is it's not showing the correct presentation of bubble sort. I still have problems with this code it would be better if you could help me with those as well. If I clear the graphics using the getClearRect it's flickering, If I remove it, it doesn't flicker but it's not showing the correct presentation of sort.



Anybody would like to give any idea?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41110
    
  45
There's nothing applet-specific about the question, so I'm moving it to the Swing/GUI forum.


Ping & DNS - my free Android networking tools app
Kalabaw moo
Ranch Hand

Joined: May 26, 2009
Posts: 61
thanks, I already resolved it using backbuffering
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Animated Line for sorting
 
Similar Threads
Need help breaking up this code
Old NASA style counter widget built from Swing components
Calling an applet from another class of the same package
Moving Circles
Phasor applet-some prbs already compiled code written here