public void initMenu()
    {
        comps.add(new UILabel("Connecting to server: "+serverIP, w/2, h/2, LabelAlignment.CENTERED).setColor(0xFFFFFF));
        backButton = new UIButton(this, w/2-75, h/2-30, 150, 30,"Cancel");
        comps.add(backButton);
        if(!connecting)
        new Thread(new Runnable()
        {
            public void run()
            {
                if(serverIP == null || serverIP.trim().length() == 0)
                    return;
                String serverAddress = "";
                int serverPort = 35565;
                if(serverIP.contains(":"))
                {
                    serverAddress = serverIP.split(":")[0];
                    serverPort = Integer.parseInt(serverIP.split(":")[1]);
                }
                else
                {
                    serverAddress = serverIP;
                }
                try
                {
                    client = new Client(6556500, 6556500);
                    client.start();
                    NetworkCommons.registerClassesFor(client);
                    ClientNetworkListener listener = new ClientNetworkListener(client);
                    BlockyMain.instance.setClientNetwork(listener);
                    client.addListener(listener);
                    client.connect(8001, serverAddress, serverPort);
                }
                catch (Exception e)
                {
                    UI.displayMenu(new UIErrorMenu(new UIMainMenu(), UIConnectingToServer.this, e));
                    e.printStackTrace();
                }
                
            }
        }).start();
        connecting = true;
    }