public void rootWindowClosing(WindowEvent evt) {
        connection.removePacketListener(listener);
        ((ObservableReader) reader).removeReaderListener(readerListener);
        ((ObservableWriter) writer).removeWriterListener(writerListener);
    }
public void rootWindowClosing(WindowEvent evt) {
        connection.removePacketListener(listener);
        ((ObservableReader) reader).removeReaderListener(readerListener);
        ((ObservableWriter) writer).removeWriterListener(writerListener);
    }
public void rootWindowClosing ( WindowEvent evt ) { connection . removePacketListener ( listener ) ; ( ( ObservableReader ) reader ) . removeReaderListener ( readerListener ) ; ( ( ObservableWriter ) writer ) . removeWriterListener ( writerListener ) ; }
Notification that the root window is closing. Stop listening for received
and transmitted packets.

@param evt
the event that indicates that the root window is closing
Notification that the root window is closing . Stop listening for received and transmitted packets .