예제 #1
0
 void sendinfo(String number) {
   System.out.println("call 1 hereeeee.........");
   if (this.type.equals("server")) {
     server1.informClient(number);
   }
   if (this.type.equals("client")) {
     client1.informServer(number);
   }
 }
예제 #2
0
 private void jButton3ActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_jButton3ActionPerformed
   if (this.type.equals("server")) {
     server1.informClient("20");
   }
   if (this.type.equals("client")) {
     client1.informServer("20");
   }
   reset();
   activateScreen();
 } // GEN-LAST:event_jButton3ActionPerformed