view.statusBar.setStatusIcon("graphx/server_connect16.png",
view.statusBar.setStatusIcon("resources/graphx/server_connect16.png",
	public void tryLogin(MainPanel v)    {        this.view = v;        // Display the initial login dialog        displayLoginDialog(view);                view.statusBar.setStatusIcon("graphx/server_trying16.png",        "Trying to connect.");        try        {            if (!isValidLogin())            {                view.statusBar.setStatusIcon("graphx/error_msg16.png",                        "Incorrect username/password. Server login failed, please try to "                                + "log in again.");                JOptionPane.showMessageDialog(view,                        "Incorrect username/password. Server login \nfailed, please "                                + "try to log in again.");                view.loggedIn = false;                return;            }        } catch (Exception e)        {            StringWriter sw = new StringWriter();            PrintWriter pw = new PrintWriter(sw);            e.printStackTrace(pw);            log.info(sw);            view.statusBar.setStatusIcon("graphx/error_msg16.png",                    "Server connection failure. Please try to login again.");            JOptionPane                    .showMessageDialog(                            view,                            "The application failed to login with an exception "                            + "\n(which is displayed on the debug window). \nYour "                             + "server hostname/port may be wrong, or \nthe server "                            + "may be offline/inaccessable.\n\nPlease try to log "                            + "in again.");            view.loggedIn = false;            return;        }	    userPrefs.put("savedUserName", username);	    userPrefs.put("savedHostName", server);	    userPrefs.put("savedPortNo", port);        view.loggedIn = true;        view.statusBar.setStatusIcon("graphx/server_connect16.png",                "Server connected.");    }