<< Labs >> << Assignments >>

An Applet With Canvas

Base applet:



Class Canvas

  • is in java.awt package

Add buttons to move the circle up and down



Add second canvas that displays string "Canvas"




Make canvas listen to buttons with method calls



Add another canvas that reacts on buttons





© 2011 The Pain Dealers. All Rights Reserved. Designed by Toxicman. Sponsored by The Pain Radio
Apache: , PHP: 5.2.5