Example #1
0
 /**
  * Basic component method - draw the picture The code is not fault-tolerant at all.
  *
  * @param g the AWT graphic object
  */
 public void paint(Graphics g) {
   try {
     port.setPortGraphics(g);
     setCursor(processing);
     pict.execute(port);
     setCursor(idle);
   } catch (Exception e) {
     e.printStackTrace();
     System.exit(0);
   }
 } // paint