import java.awt.*; import javax.swing.*; import java.awt.event.*; //change kedigh3 to the required class name public class Kedigh3 extends JPanel implements ActionListener //ANIMATION { //animation int delay =55; //amount of the delay between redrawing the screen Timer tm = new Timer(delay,this); int r1 = 2 ; //a variable that COULD represents the number of pixels the shape moves on each redraw //variables that change over time ************** public void paintComponent(Graphics g) { super.paintComponent(g); //Draw you objects and set colors here ************ //End of all the objects you draw ***************** //ANIMATION tm.start(); }//end paint //MUST HAVE FOR ANIMATION //HOW THE VARIABLES CHANGE OVER TIME ********************** public void actionPerformed(ActionEvent e) { repaint(); }//END METHOD public static void main() { //CHANGE THE FRAME TITLE ****************** JFrame frame = new JFrame("I did not change this"); frame.setSize(600, 600); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //Kedigh3 will have to be changed to the namne you selected above *********** JPanel panel = new Kedigh3(); panel.setBackground(Color.WHITE); frame.getContentPane().add(panel, BorderLayout.CENTER); frame.setVisible(true); }//end main }//end class