File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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: 42599
    
  65
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Animated Line for sorting