Problem with modify a field of an applet from other applet
Hi everybody,
I am developing an application java card. This application has two principal functions.
1. To manage the student
2. To manage the loan of the books of the library
1. Manage the student
Each student is provided a smart card with a password. A student uses this card to be identified , for example: the entry of the university, the library... The card will store information of its content:
+ pine code
+ Name of the student
+ Addresses it of the student
+ Photograph of the student? ...
2. Manage the loan of the books of the library
It makes it possible to manage the loan the book of the library. Each time that a student borrows a book, the librarian will record information necessary to the card. If the student borrowed a number of the book which over the number of licences,he is not borrowed more. And if borrowed books which are exceeded the time to return, this card will be blocked till the student returns this book to the library. To carry out this function, the card will store following information:
1. The maximum number of books which one can borrow
2. The number of the books which is borrowed
3. The code, and the name of the books which is borrowed
4. delay
I built two applet, one for the student (StudentApplet) and other for the librarian (LibrarianApplet). The librarian and the student have his own pass. The Librarian can lock and unlock the card by his applet. I declare a variable lock (boolean, lock = false, the card is blocked).
My question is :how can I do for LibrarianApplet can read, and modify the variable lock of StudentApplet?
Message was edited by:
khanhnt

