This is a piece of OOP history. HotDraw is a small diagramming/drawing tool, originally developed 1987 in Smalltalk by Ward Cunningham and Kent Beck. It would be even better to run the original hotdraw in Smalltalk, but I was not successful so far, so here is the Java port, 13 years older than the original, but the oldest version I could find.
- Download hotdraw 5.2 (I could not get 5.4 to run) from https://sourceforge.net/projects/jhotdraw/files/JHotDraw/5.2/
- There are some variables called
enum
but that is now a reserved name so, search the project for the stringenum
and replace these with myEnum or something like that. - There is one ambiguous import in
StandardDrawingView.java
. Resolve that by appending toStandardDrawingView.java
’s list of imports this:import CH.ifa.draw.framework.Painter;
- Now run CH.ifa.draw.samples.nothing.NothingApp (Less features, single doc) or CH.ifa.draw.samples.javadraw.JavaDrawApp.java (more features, multi doc)
Now, the program should appear and look like a very old (~year 2000) Java program.