// The Global Next Button
import java.applet.*;
import java.awt.*;
import java.util.Enumeration;
public class awcpart2 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();
  Enumeration applets=ctx.getApplets();
  Object anApplet;
  while (applets.hasMoreElements()) {
    anApplet=applets.nextElement();
    if (anApplet instanceof awcpart1) {
      awcpart1 part1=(awcpart1) anApplet;
      part1.next();
    }
  }
  return true; 
  }
}