import java.rmi.*; public class ExempleAppletRmiThread extends Thread { private boolean bRun = false; private ExempleAppletRmiSlave ars; private ExempleAppletRmiInterface ari; public ExempleAppletRmiThread() { super(); } public ExempleAppletRmiThread(ExempleAppletRmiSlave s, ExempleAppletRmiInterface i) { ari = i; ars = s; } public void run() { bRun = true ; while ( bRun ) { try { ars.p = ari.position(); } catch( RemoteException re) { } ; ars.repaint(); try { sleep(3000) ; } catch (InterruptedException e) {} ; } } }