Meaningless Drivel is fun!*
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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: 41626
    
  55
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Animated Line for sorting