//******************************************************************** // rebound2.java Author: Pat Moss Rev. 02 11-11-2005 // // Demonstrates an animation and the use of the Timer class. // And Start/Stop animation by clicking the mouse. //******************************************************************** import java.awt.*; import java.awt.event.*; import javax.swing.*; public class rebound2 { //----------------------------------------------------------------- // Displays the main frame of the program. //----------------------------------------------------------------- public static void main (String[] args) { JFrame frame = new JFrame ("rebound2 by pat moss rev. 02"); frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); frame.getContentPane().add(new reboundpanel2()); frame.pack(); frame.setVisible(true); } }