This project provides some examples of handling mouse events. Example applications are drawing some pre-defined shapes and curves.
This provides functions for saving images into files.
An application for drawing some pre-defined shapes as an example of drawing shapes on JPanel
.
DrawPanel.java
: This provides a canvas for drawing shapes.ShapeSampleMain.java
: The main class with some menus.
DrawPanel.java
: This provides a canvas for drawing shapes. This class listens mouse events and reacts to them.SimpleDrawerMain.java
: The main class with some menus.