Click here to Skip to main content
15,908,112 members
Home / Discussions / Java
   

Java

 
AnswerRe: Handling Biometric Fingerprint Attendance Machine Pin
Maheera Jazi3-Jun-14 22:05
Maheera Jazi3-Jun-14 22:05 
GeneralRe: Handling Biometric Fingerprint Attendance Machine Pin
Richard MacCutchan3-Jun-14 22:32
mveRichard MacCutchan3-Jun-14 22:32 
GeneralRe: Handling Biometric Fingerprint Attendance Machine Pin
Maheera Jazi3-Jun-14 22:35
Maheera Jazi3-Jun-14 22:35 
GeneralRe: Handling Biometric Fingerprint Attendance Machine Pin
Richard MacCutchan3-Jun-14 22:40
mveRichard MacCutchan3-Jun-14 22:40 
GeneralRe: Handling Biometric Fingerprint Attendance Machine Pin
Maheera Jazi3-Jun-14 22:44
Maheera Jazi3-Jun-14 22:44 
GeneralRe: Handling Biometric Fingerprint Attendance Machine Pin
Richard MacCutchan3-Jun-14 23:24
mveRichard MacCutchan3-Jun-14 23:24 
QuestionAccessing public methods of child thread from parent class Pin
krishna_m29-May-14 1:27
professionalkrishna_m29-May-14 1:27 
AnswerRe: Accessing public methods of child thread from parent class Pin
TorstenH.3-Jun-14 1:15
TorstenH.3-Jun-14 1:15 
Short answer: YES.

long answer:

I would recommend to use childThread direct and a null-check before using the member variable t:
Java
public class ChildThread extends Thread{
    //variable-declaration

    public ChildThread(String name){
    //initialization
      super(name);
    }
 
    public void run(){
    //some code here;
    }
 
    public void doMethod(){
    //do something
    }
}
 


public class Parent {
    ChildThread t;
    //variables
 
    public Parent(){
    //initialization
    }
 
    //statements
 
    private someParentMethod{
        //for some event1
        t=new ChildThread("name1");
        t.start();
    }
 
  private doSomething(){
        //some event1 for name1
        //want to call doMethod() of ClildThread name1

    if(t != null){
      t.doMethod();
    }
  }
}

regards Torsten
I never finish anyth...

AnswerRe: Accessing public methods of child thread from parent class Pin
jschell3-Jun-14 10:02
jschell3-Jun-14 10:02 
Questionjava code for converting pdf to excel file Pin
Bhupathirao26-May-14 19:32
Bhupathirao26-May-14 19:32 
AnswerRe: java code for converting pdf to excel file Pin
Richard MacCutchan26-May-14 21:36
mveRichard MacCutchan26-May-14 21:36 
AnswerRe: java code for converting pdf to excel file Pin
jschell28-May-14 8:49
jschell28-May-14 8:49 
AnswerMessage Closed Pin
10-Jun-14 19:50
professionalvJay Yadav10-Jun-14 19:50 
QuestionRe: java code for converting pdf to excel file Pin
Richard MacCutchan10-Jun-14 21:43
mveRichard MacCutchan10-Jun-14 21:43 
Question[SOLVED] SerialPort and Thread: can't read from the input stream. Pin
Francesco Fraccaroli26-May-14 3:11
Francesco Fraccaroli26-May-14 3:11 
AnswerRe: SerialPort and Thread: can't read from the input stream. Pin
Richard MacCutchan26-May-14 6:25
mveRichard MacCutchan26-May-14 6:25 
GeneralRe: SerialPort and Thread: can't read from the input stream. Pin
Francesco Fraccaroli26-May-14 21:57
Francesco Fraccaroli26-May-14 21:57 
Questionmy .ex don't work as expected Pin
mtouxx23-May-14 0:55
mtouxx23-May-14 0:55 
AnswerRe: my .ex don't work as expected Pin
Richard MacCutchan23-May-14 6:19
mveRichard MacCutchan23-May-14 6:19 
AnswerRe: my .ex don't work as expected Pin
TorstenH.3-Jun-14 1:20
TorstenH.3-Jun-14 1:20 
QuestionLimit of the XML file. Pin
User 1006066521-May-14 23:55
User 1006066521-May-14 23:55 
AnswerRe: Limit of the XML file. Pin
jschell22-May-14 9:20
jschell22-May-14 9:20 
GeneralMessage Closed Pin
22-May-14 19:58
User 1006066522-May-14 19:58 
GeneralRe: Limit of the XML file. Pin
Richard MacCutchan22-May-14 21:07
mveRichard MacCutchan22-May-14 21:07 
GeneralRe: Limit of the XML file. Pin
User 1006066527-May-14 22:59
User 1006066527-May-14 22:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.