U:\NetBeans\PokeBall\src\graphicslab04\GraphicsLab04.java
 1 package graphicslab04;
 2
 3 import java.applet.Applet;
 4 import java.awt.Color;
 5 import java.awt.Graphics;
 6 import java.awt.Graphics2D;
 7 import java.awt.RenderingHints;
 8
 9 /**
10  *
11  * @author Byron Ramirez
12  * @author Scott Walker
13  */
14 public class GraphicsLab04 extends Applet {
15
16     private static final long serialVersionUID = 1L;
17     private static final PokeBallSet pbs = new PokeBallSet();
18
19     @Override
20     public void paint(Graphics g) {
21         this.setBackground(Color.gray);
22         ((Graphics2D) g).setRenderingHint(RenderingHints.KEY_ANTIALIASING,
23                 RenderingHints.VALUE_ANTIALIAS_ON);
24         pbs.drawSet(g);
25     }
26 }
27