import java.awt.*;
import java.applet.Applet;

public class StaticFix extends Applet {

  public void init() { 
    setLayout(new BorderLayout());

    TextField tf = new TextField();
    add("Center", tf);

    try {
      MyStaticDriverManager.register(
       (MyStaticDriver)Class.forName("MyStaticDriver").newInstance());
    } catch (ClassNotFoundException e) {
      System.out.println("Could not find MyStaticDriver class");
    } catch (IllegalAccessException e) {
      System.out.println("Illegal Access Exception thrown");
    } catch (InstantiationException e) {
      System.out.println("Could not instantiate");
    }

    String count = "Count Should Be above 0. It is actually " + 
              (new Integer(MyStaticDriverManager.getRegisterCount())).toString();
    tf.setText(count);

  }

}