// the applet initialization
// add the buttons to the applet
add(b1);
add(b2);
add(b3);
try
{
adapter = new GenericButtonAdapter(this);
adapter.registerActionEventHandler(b1, "handleB1");
adapter.registerActionEventHandler(b2, "handleB2");
adapter.registerActionEventHandler(b3, "handleB3");
}
catch (ClassNotFoundException e)
{
System.out.println(e);
}
catch (NoSuchMethodException e)
{
System.out.println(e);
}