1 2 3 4 5 6 7 8 9 10 11 12
| JOptionPane jOption=new JOptionPane();
// On commence le timer pour killer le callThread au bout de 18sec: avant le timeout de l'autre
timerQuestionCall=new Timer();
timerQuestionCall.schedule(new CallQuestionTask(this,p2PManager,jOption),
18*1000, //initial delay
18*1000); //subsequent rate
System.err.println("TIMER LANCEEEE depuis " + requestSplited[3] + " pour le thread " + this.peer.buddyName);
int callReceive = jOption.showConfirmDialog(null, "Call received :\n"+ requestSplited[3]+"\n" + "IP: " +requestSplited[4] + " / Port: "+
requestSplited[5]+ "\n\nWould you like to answer to this call ?", "Incomming call", JOptionPane.YES_NO_OPTION); |
Partager