ho un piccolo problema:
ho una classe TestThread che implementa Runnable.
nel main faccio:
ed è tutto ok.codice:TestThread testThread = new TestThread (); Thread t1 = new Thread (testThread ); t1.setName("ciao"); t1.start();
successivamente mi sono creato una classe MyThread che estende thread con set e get di altri valore (cognomeThread, indirizzothread ecc...) facendo:
ma sono sicuro che sbaglio qualcosa perchè il thread non viene lanciato...codice:MyThread t1 = new MyThread (testThread ); t1.setName("ciao"); t1.setCognome("prova"); t1.start();
cosa sbaglio?
thanx
nh

Rispondi quotando
