Java Programming : Stand-alone Whiteboard



A stand-alone whiteboard allows a single user to draw shapes to a window, cut and paste these shapes, and save the drawings to the disk. Extensive use of AWT has been done for implementation.

The stand-alone whiteboard comprises of a pallete made up of several drawing icons. Besides the icon corresponding to the shapes that can be drawn, there is a selection icon that enables the users to select one or more shapes for the drawing area, so that these can be cut and pasted; theres is also a Move icon that allows selected shapes to be displaced in the drawing area.

There is a menu bar comprising of File Menue supporting: New (clears contents of Whiteboard, leaving content of clipboard intact), Import (enables users to read shapes from a file on disk), Save As (allows users to save the shapes in drawing area to a file on disk), Print, and Exit.

Edit menu supports Cut, Copy, Paste, Clear, Bring to Front and Send Back functions. In addition there is a Help menu.

The Code

README