File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Animated Line for sorting" Watch "Animated Line for sorting" New topic

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

Joined: Mar 22, 2005
Posts: 41034
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:
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