FileDialog fd = new FileDialog(frame, "Select saved game...", FileDialog.LOAD);
FileDialog fd = new FileDialog(frame, "Select saved game...", FileDialog.LOAD); fd.setDirectory(".");
    public void loadGame() {        FileDialog fd = new FileDialog(frame,                "Select saved game...",                FileDialog.LOAD);        fd.show();        if (fd.getFile() == null) {            return;        }        HostDialog hd = new HostDialog(frame);        hd.show();        if (hd.name == null || hd.serverPass == null || hd.port == 0) {            return;        }        server = new Server(hd.serverPass, hd.port);        if (!server.loadGame(new File(fd.getDirectory(), fd.getFile()))) {            new AlertDialog(frame, "Load a Game", "Error: unable to load game file.").show();            server = null;            return;        }        client = new Client(hd.name, "localhost", hd.port);		launch(client.getFrame());    }