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