import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.util.Random ; //change kedigh3 to the required class name public class Kedigh319 extends JPanel implements ActionListener //ANIMATION { //variable Declaration ************** 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 ********************** Do nothing here 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");//change 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 Kedigh319();//change panel.setBackground(Color.BLACK); frame.getContentPane().add(panel, BorderLayout.CENTER); frame.setVisible(true); }//end main }//end class