예제 #1
0
 /**
  * PacketListener interface method implementation.
  *
  * <p>Called outside Swing thread!
  *
  * @param packet The packet received.
  */
 public void processPacket(final Packet packet) {
   // Invoke into the Swing thread.
   SwingUtilities.invokeLater(
       new Runnable() {
         public void run() {
           if (packet instanceof Message) {
             doMessageReceived((Message) packet);
           }
         }
       });
 }