// This example is from the book Developing Java Beans by Robert Englander.
// Copyright (c) 1997 O'Reilly & Associates.
// You may study, use, modify, and distribute this example for any purpose.
// This example is provided WITHOUT WARRANTY either expressed or implied.
// Chapter 5 -- The PickleUser class
import java.applet.*;
import java.beans.*;
import BeansBook.util.*;
public class PickleUser extends Applet
{
public void init()
{
try
{
PickleButton p =
(PickleButton)Beans.instantiate(null, "BeansBook.util.PickleButton");
add(p);
}
catch (Exception e)
{
}
}
}
|