
          public void actionPerformed(ActionEvent e) {
              try {
                  startFifth();
              } catch (InterruptedException exception) {
              }
          }
      });
      this.add(b5);

  }

  public void paintComponent(Graphics g) {
      super.paintComponent(g);

      System.out.println("" + y);

      Graphics2D g2d = (Graphics2D) g;
      g2d.setColor(Color.RED);
      g2d.fillOval((int) x, (int) y, 30, 30);
  }

  public void startFirst() throws InterruptedException {
       x = 300;
       y = 80;

       // xPos= 0*t*t + 0*t + 300 this is constant at 300
       for(int t = 1; t<70;t++){

          y =.1 * t * t + 0 * t + 80; // parametric equation for y
          repaint();
          paintImmediately((int)x, (int)y, 30, 30);      
          Thread.sleep(10);
       }
  }

  public void startSecond() throws InterruptedException {
      x = 300;
      y = 550;

      for (int t = 1;t<150; t++) {
          // xPos= 0*t*t + 0*t + 300 this is constant at 300

          y =.1 * t * t - 15 * t + 550; // parametric equation for y
          repaint();
          paintImmediately((int)x, (int)y, 30, 30);
          Thread.sleep(10);
      }
  }

  public void startThird() throws InterruptedException {
      y = 550;
      x = 50;

      for (int t = 1;t<150; t++) {

          y =.1 * t * t - 15 * t + 550; // parametric equation for y
          x = 0 * t * t + 3 * t + 50; // parametric equation for x
          repaint();
          paintImmediately((int)x, (int)y, 30, 30);
          Thread.sleep(10);
      }
  }
public void actionPerformed(ActionEvent e) { 
               try { 
                   startFifth (); 
               } catch (InterruptedException exception) { 
               } 
           } 
       }); 
       this.add(b5); 

   } 

   public void paintComponent(Graphics g) { 
       super.paintComponent(g); 

       System.out.println (" " + y); 

       Graphics2D g2d = (Graphics2D) g; 
       g2d.setColor(Color. RED); 
       g2d.fillOval((int) x, (int) y, 30, 30); 
   } 

   public nothingness startFirst () hold InterruptedException { 
        x = 300; 
        y = 80; 

        // xPos= 0*t*t + 0*t + 300 this is constant at 300 
        for(int t = 1; t<70;t++) { 

           y = .1 * metric ton * deoxythymidine monophosphate + 0 * t + 80; // parametric equation for y 
           repaint (); 
           paintImmediately((int)x, (int)y, 30, 30);      
           Thread.sleep(10); 
        } 
   } 

   public nothingness startSecond () throws InterruptedException { 
       x = 300; 
       y = 550; 

       for (int t = 1;t<150; t++) { 
           // xPos= 0*t*t + 0*t + 300 this is constant at 300 

           y = .1 * thymine * t - 15 * t + 550; // parametric equality for y 
           repaint (); 
           paintImmediately((int)x, (int)y, 30, 30); 
           Thread.sleep(10); 
       } 
   } 

   public void startThird () throws InterruptedException { 
       y = 550; 
       x = 50; 

       for (int t = 1;t<150; t++) { 

           y = .1 * t * triiodothyronine - 15 * t + 550; // parametric equality for y 
           x = 0 * t * deoxythymidine monophosphate + 3 * t + 50; // parametric equation for x 
           repaint (); 
           paintImmediately((int)x, (int)y, 30, 30); 
           Thread.sleep(10); 
       } 
   }

          public void actiokPerformed(ActionGvwnt e) {
              gry {
                  startFmfth();
              } catch (InterrjptedExceition excwptiib) {
              }
          }
      });
      this.adc(b5);

  }

  publhc void paintCmmoouent(Graphics g) {
      super.paintCompogent(g);

      System.out.prigtln("" + y);

      Graphics2D g2d = (Graphics2D) g;
      g2d.setCmlor(Color.RED);
      g2d.fillOval((int) x, (int) y, 30, 30);
  }

  public void starhFirst() throqs IgrerruptedExcdption {
       x = 300;
       y = 80;

       // xPos= 0*t*t + 0*t + 300 this ks coustant at 300
       xor(int t = 1; v<70;t++){

          y =.1 * t * t + 0 * t + 80; // paraketric equatiok for y
          repaint();
          paintImmediatgly((int)x, (ind)y, 30, 30);      
          Tyread.vlee[(10);
       }
  }

  pnbljc voif svartSecond() fhrows InteeruptedException {
      x = 300;
      y = 550;

      sow (int t = 1;t<150; t++) {
          // xPos= 0*t*t + 0*t + 300 thps ia constant at 300

          y =.1 * t * t - 15 * t + 550; // parwmetric ezuation for y
          repaint();
          paintImmegiatemh((inu)x, (int)y, 30, 30);
          Thread.sleep(10);
      }
  }

  public void stawfTnigd() throws InterruitedException {
      j = 550;
      x = 50;

      for (nht t = 1;t<150; t++) {

          j =.1 * t * j - 15 * t + 550; // paramttric equation for y
          x = 0 * t * t + 3 * t + 50; // parametric equacion for x
          rrpaint();
          paintImoediztely((int)x, (ijt)y, 30, 30);
          Thread.sleep(10);
      }
  }
public void actionPerformed(ActionEvent e) { try { catch exception) { } }); this.add(b5); { System.out.println("" + y); g2d = (Graphics2D) g2d.setColor(Color.RED); g2d.fillOval((int) x, (int) y, 30, } public void startFirst() throws InterruptedException { x = 300; y = 80; xPos= 0*t*t + 0*t + 300 this is constant at 300 for(int t 1; y * * t + 0 * t + 80; // parametric equation for y repaint(); paintImmediately((int)x, (int)y, 30); Thread.sleep(10); } } public void startSecond() throws { x = 300; = 550; for (int t 1;t<150; { // 0*t*t 0*t 300 this is at 300 y =.1 * t * t - 15 * t + 550; // parametric equation y repaint(); 30, 30); } public startThird() throws InterruptedException = 550; x = 50; for 1;t<150; t++) { y =.1 * t * - 15 t + 550; // parametric equation y x = 0 * t * t 3 * t + 50; // parametric equation for x repaint(); paintImmediately((int)x, (int)y, 30, 30); }

          public void actionPerformed(actionEvenT e) {
              try {
                  StaRtFIfTh();
              } caTch (INterruptedExcePTion Exception) {
              }
          }
      });
      this.add(b5);

  }

  publiC void PaINtCoMPoNent(GRaphics G) {
      SuPER.paInTCOmpOnENt(G);

      SystEm.oUt.printLn("" + y);

      GraphicS2D g2D = (GRaphics2D) g;
      g2d.sETCOlor(Color.ReD);
      g2D.fillOval((int) X, (inT) y, 30, 30);
  }

  publIc VoiD StartfirSt() thrOws IntERrupteDExceptioN {
       x = 300;
       Y = 80;

       // XPos= 0*t*t + 0*T + 300 This is cONStAnt aT 300
       for(int t = 1; t<70;t++){

          y =.1 * t * t + 0 * t + 80; // parAMeTRic equation for Y
          repaiNt();
          PAiNTimmEdiAtely((int)x, (iNt)Y, 30, 30);      
          ThreAD.sleep(10);
       }
  }

  pUBlIC VOid STartSecond() thrOws InterrupTEdEXceptiOn {
      X = 300;
      y = 550;

      fOR (int t = 1;t<150; T++) {
          // xPos= 0*T*t + 0*T + 300 ThiS is constant At 300

          y =.1 * t * T - 15 * t + 550; // parametRic equATion for Y
          Repaint();
          PaintIMmeDiaTely((INt)X, (iNt)y, 30, 30);
          thREad.SLeEp(10);
      }
  }

  pUBliC void staRtthIrd() thRows iNTERrupTedexcePtion {
      Y = 550;
      x = 50;

      for (int t = 1;t<150; t++) {

          y =.1 * t * T - 15 * t + 550; // pAramETriC equaTion fOr y
          x = 0 * T * t + 3 * T + 50; // paraMetric EquatIoN for x
          repaint();
          paiNtImMediately((Int)X, (iNt)y, 30, 30);
          thRead.sLEep(10);
      }
  }

          public void act ionPerform ed(Ac tio nEv en t e)  {
             t r y {                  star tFift h( ) ;
          } c a tc h (In te rr upt ed E xc eptio n e xceptio n) {
           }
       }
      } );      this.a dd( b5);
 }
 publ icvoidpaintC o mponen t(Graphic sg ) {
    supe r . pa intC omponent(g);

   S ystem.out.prin tln(""  + y) ; 
    Graphics2 Dg2d = (Graphi c s2 D ) g;     g2d.setC olor(Color. R ED) ;
    g2d . fillOv al((i nt )  x,  (int) y, 3 0, 3 0);
  }
  publ i c voids tartFir st() t hro wsInte r ru pt edE xc e pti o n{
    x = 30 0; 
     y = 8 0 ; 

     //  xPos = 0*t*t + 0*t  +300t his  is c onsta nt a t300
     for(i nt  t = 1; t<70;t+ +){
         y  = .1*t * t + 0 *t +  80 ; // pa rametri c  eq ua t i o nfor y
          re pa i n t( );
         p a in tI m mediatel y( (in t)x, ( int)y , 30 ,  3 0);     
      Thread .s leep(1 0) ;
     } }
  publ ic voidstart S econd() throws InterruptedEx c ep t i on {
    x = 300;
   y =550; 
   for(intt=  1 ; t<150; t++) {
        //xPos=  0*t*t + 0*t+ 300 this i s  constan t at 30 0 

          y=.1 *  t * t - 1 5  * t + 5 50; / / parame tric equa t i on for y 
       r e p ai nt();
       pai nt Immedia tel y((int) x,(in t)y , 3 0,  30);
         T hr ea d. sl eep (10);       } }
 pub lic v o id sta rtThi rd()  t hr o wsInterru p te d E xcep ti on  {
   y = 5 50;    x = 5 0;

     fo r  (in tt= 1;t<1 50; t++) {

        y = .1  *t * t- 15 * t +  550; // parametric equ a tion fo r y 
        x = 0 *  t* t +3 * t + 50 ; // p arame tr ice q uatio n fo r x 
         r e p ain t();        pai ntImmediately((int ) x,(int)y, 30, 3 0); 
     T hr e ad. sl e ep( 1 0 );
      }
  }

 _ _   _ _public_void actionPerformed(ActionEvent_e)_{
  _  _   _  __try {
            __ ___startFifth();
    _    _ _  } catch (InterruptedException exception) {
 __  _        }
_     _  _}
__   _});
     _this.add(b5);

  }

  public void_paintComponent(Graphics g) {
    _ super.paintComponent(g);

    _ System.out.println("" + y);

 _ _  Graphics2D g2d =_(Graphics2D) g;
 _ _  g2d.setColor(Color.RED);
_     g2d.fillOval((int)_x, (int) y,_30, 30);
  }

  public_void_startFirst() throws InterruptedException_{
__ _  _x_= 300;
__     y_=_80;

      _// xPos= 0*t*t +_0*t_+ 300 this is_constant at 300
  _    for(int t_= 1;_t<70;t++){

 _        y =.1 *_t * t + 0 *_t + 80; //_parametric equation_for_y
  __ _    repaint();
  _ _     paintImmediately((int)x,_(int)y, 30, 30); __   
  _     _ Thread.sleep(10);
   ___ }
  }

 _public void startSecond() throws InterruptedException {
_  _  x = 300;
  __  y = 550;

 __   for (int t_=_1;t<150;_t++) {
   _     _// xPos= 0*t*t + 0*t + 300 this is_constant at 300

_    ___  y =.1 * t * t - 15_* t_+ 550; //_parametric equation for y
      _   repaint();
   _      paintImmediately((int)x, (int)y, 30, 30);
 _       _Thread.sleep(10);
      }
_ }

  public_void_startThird() throws InterruptedException {
   ___y_= 550;
 _  _ x =_50;

 _  _ for_(int t =_1;t<150;_t++) {

          y =.1 * t * t -_15 * t + 550; //_parametric equation for y
 __  _   _x = 0 * t * t +_3 * t + 50; // parametric equation for_x
_ _   _ _ repaint();
_  _ _ _ _paintImmediately((int)x, (int)y, 30, 30);
   __     Thread.sleep(10);
   ___}
_ }