// A Specific Next Button
import java.applet.*;
import java.awt.*;
import java.util.Enumeration;
public class awcpart2a extends Applet {
Button btn;
public String getAppletInfo() {
  String s=
    "Palindrome applet (part2) by Al Williams";
  return s;
  }
public void init() {
  Rectangle sz=bounds();
  // Donšt use a layout manager
  setLayout(null);
  // make the next button, add it, and make it large
  btn=new Button("Next");
  add(btn);
  btn.resize(sz.width,sz.height);
  }
// 1.0 event handler
public boolean action(Event e,Object arg) {
  AppletContext ctx=getAppletContext();
  awcpart1 part1=(awcpart1) ctx.getApplet(getParameter("part1"));
  part1.next();
  return true; 
  }
private String [][] paraminfo= {
  { "part1","Name of part1","Part1 name" }
  };
public String[][] getParameterInfo() {
  return paraminfo;
  }
}