Vector
has to contain elements that are
Comparable
.
If everything is running as it should, you should see an applet below with a series of vertical lines of all different heights. This is a graphic representation of the random vector to be sorted. If you see only a blank square, then you are probably running an old version of the JRE. This applet requires JRE 1.3.
To start run the example, just click on the applet below. To restart the applet, refresh the page.
|
Documentation |
Alternatively, you can download and run this example as a java application using Java Web Start. If you are on Mac OS X 10.1+, the software you need is already installed. However, if you are on Windows or some other OS, yo may need to download the Java Web Start software ( Windows ).
Run the Thread Sort application.
SortApplet
extends java.applet.Applet
.
I would like to re-write this entirely from scratch, extending instead,
javax.swing.JApplet
. I am hoping that in migrating to
JApplet
, I will reach the following goals:
Applet
as well,
I personally want the experience of working with JApplet
.
JApplet
, will
also reduce the amount of work to reach my final goal, of having this be
a standard stand-alone swing application deliverable by Java Web Start.
If you have any questions or comments, please don't hesitate to contact me.
I hope you found this project stimulating.
Sincerely,
Eric Bergerson
Email: info@object.com