This is a drawing program implemented in Java, using jdk v.1.1.x.  This program implements drawing of lines, rectangles, ovals, filled rectangles, and filled ovals.  It also implements rubber-banding, file I/O, printing, multiple instances, deleting, moving, re-coloring, and resizing objects, and some robustness in terms of user-error.

ApplicationFrame.java - The super class for the frame.
ColorButton.java - Buttons for selection of colors.
DrawCanvas.java - The canvas that all objects are drawn onto.
DrawFrame.java - The frame that contains the canvas.
DrawObject.java - The abstracted super class for all drawing objects.
FOval.java - The Filled Oval class.
FRect.java - The Filled Rectangle class.
JDraw.java - The main routine and event loop.
Line.java - The Line class.
MsgDialog.java - A message dialog box for helpful messages during execution.
Oval.java - The regular Oval class.
QuestionDialog.java - A dialog box for asking questions.
Rect.java - The regular Rectangle class.
SFOval.java - The Selected Filled Oval class.
SFRect.java - The Selected Filled Rectangle class.
SLine.java - The Selected Line class.
SOval.java - The Selected Oval class.
SRect.java - The Selected Rectangle class.

JDraw.tar.gz - The entire program.


Home

Modified Last: 25 April 2000