Hi,

I am a beginner and I try to transform a demo's sample
"InsertRemoveCard.java". I would like run it under a Applet.

This is my source code :

==================================================================
public class PremiereApplet extends Applet implements CTListener {

  public void init() {

    try {

      // Start the OpenCard Framework
      SmartCard.start ();

      // Add Listener
      EventGenerator.getGenerator().addCTListener( new PremiereApplet()
);

    } catch (Exception e) {
      e.printStackTrace(System.err);
    }

  }

  public void cardRemoved ( CardTerminalEvent ctEvent ) {
    System.out.println("SignatureCard(cardRemoved): done");
  }
  public void cardInserted( CardTerminalEvent ctEvent ) {
    System.out.println("SignatureCard(cardInserted): done");
  }

}
==================================================================

But it don't work. Can you help me ?

Thanks
Frank A.




---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/

! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
!                           [EMAIL PROTECTED]
! containing the word
!                           unsubscribe 
! in the body.

Reply via email to