al = (ActionListener)listener;
il = (ItemListener)listener;
setLayout(new BorderLayout());
add("Center", cards = new GraphicsCards());
Panel p = new Panel();
//p.setLayout(new BorderLayout());
Button b = new Button("next");
b.addActionListener(al);
p.add(b);
b = new Button("previous");
b.addActionListener(al);
p.add(b);
p.add(new Label("go to:", Label.RIGHT));
Choice c = new Choice();
c.addItemListener(il);
p.add(c);
c.addItem("Arc");
c.addItem("Oval");
c.addItem("Polygon");
c.addItem("Rect");
c.addItem("RoundRect");
add("North", p);
setSize(400, 400);