@Override
    public void onDisconnect() {
        JOptionPane.showMessageDialog(null, "Connection lost", "Error", JOptionPane.ERROR_MESSAGE);
        disableNewMessages();
    }
@param args the command line arguments
examples/chat/ChatFrame.java