student 98 wrote:
>
> while (terminals.hasMoreElements () )
> {
> CardTerminal terminal = (CardTerminal) terminals.nextElement ();
> if (terminal.getName().equals(myString))
^^^^^^^^^^^^^^^
Each terminal name will be unique. You most likely have 'myString' set
to the name of the first terminal. Nothing else is getting inside the
if clause.
> {
> SmartCard myCard = SmartCard.waitForCard(new
> CardRequest(CardRequest.ANYCARD));
> if (myCard != null)
> {
> CardID cardID = myCard.getCardID();
> System.out.println("CardID : " + cardID);
> } //endif
> else
> System.out.println("\nDid not get a smart card object");
> } //endif
> } //end while
> } //end try
> // here catch exceptions for the try block
>
Hope this helps.
cheers
Brian
---
> 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.