// 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
  // make the next button, add it, and make it large
  btn=new Button("Next");
// 1.0 event handler
public boolean action(Event e,Object arg) {
  AppletContext ctx=getAppletContext();
  awcpart1 part1=(awcpart1) ctx.getApplet(getParameter("part1"));
  return true; 
private String [][] paraminfo= {
  { "part1","Name of part1","Part1 name" }
public String[][] getParameterInfo() {
  return paraminfo;