lab5copy
Class GraphicsDemo
java.lang.Object
lab5copy.GraphicsDemo
public class GraphicsDemo
- extends java.lang.Object
This example demonstrates creating some shapes, adding them to a panel,
and reacting to mouse events that occur on the panel. NOTE: It is important to
add shapes to the panel after creating them... simply creating them will not
make them appear.
- Author:
- Kenneth J. Goldman
Created Aug 5, 2005
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GraphicsDemo
public GraphicsDemo(GraphicsPanel panel)
mouseMoved
public void mouseMoved(GraphicsPanel panel,
int x,
int y)
moveTo
public void moveTo(int x,
int y)
main
public static void main(java.lang.String[] args)