Drive -...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//******************************************************************** // Drive.java Author: Lewis and Loftus // // Solution to Programming Project 8.16 //******************************************************************** import javax.swing.JApplet; import javax.swing.Timer; public class Drive extends JApplet { private Timer animate; private static final int DELAY = 50; // 20 frames per second
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: //-----------------------------------------------------------------// Sets up the applet //-----------------------------------------------------------------public void init() { animate = new Timer (DELAY, null); getContentPane().add(new DrivePanel(animate)); } public void start() { animate.start(); } public void stop() { animate.stop(); } }...
View Full Document

This note was uploaded on 05/17/2011 for the course COP 3530 taught by Professor Davis during the Spring '08 term at University of Florida.

Ask a homework question - tutors are online