AlertDialog alert = new AlertDialog(frame, "Disconnected!", "You have become disconnected from the server."); alert.show();  frame.setVisible(false); die();
if ( connected ) { connected = false; AlertDialog alert = new AlertDialog(frame, "Disconnected!", "You have become disconnected from the server."); alert.show();  frame.setVisible(false); die(); }
    protected void disconnected() {        AlertDialog alert = new AlertDialog(frame, "Disconnected!", "You have become disconnected from the server.");        alert.show();        frame.setVisible(false);        die();    }