★ wanayoo — archive 1999 http://www.webtechniques.com/sourcecode/1998/09/java/3.lstNouvelle recherche | Portail wanayoo


 
| HOME | CURRENT ISSUE | ARCHIVES | SOURCE CODE | EVENTS | CUSTOMER SERVICE | ADVERTISING | AUTHOR GUIDELINES | EDITORIAL CALENDAR | SEARCH | JOBS | ABOUT

S O U R C E   C O D E / 1998 / 09 / java / 3.lst

// 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;
  }
}


| HOME | CURRENT ISSUE | ARCHIVES | SOURCE CODE | EVENTS | CUSTOMER SERVICE | ADVERTISING | AUTHOR GUIDELINES | EDITORIAL CALENDAR | SEARCH | JOBS | ABOUT





Entire contents copyright 1996-2000 CMP Media Inc.
Read our privacy policy.