public void loginHandle(String resultStr)
    {
        // resultStr ʽresult
        int resultValue = Integer.parseInt(resultStr.trim());
        
        // ¼ɹ
        if (resultValue == 1)
        {
            System.out.println("login successfully! \n I am " + CommonData.getUserName());
            
            // ʵ
            MainFrame mainFrame = new MainFrame();
            mainFrame.setVisible(true);
            
            // ȫϢе
            CommonData.setMainFrame(mainFrame);
        }
        
        // ͬû
        else if (resultValue == 0)
        {
            JOptionPane.showMessageDialog(null, "ͬû޸ûٵ¼", "information", JOptionPane.INFORMATION_MESSAGE);
            
            // 
            System.exit(0);

            System.err.println("singnal...");
            return;
        }
        
        // ¼
        else if (resultValue == -1)
        {
            JOptionPane.showMessageDialog(null, "¼", "erro", JOptionPane.ERROR_MESSAGE);
            
            // 
            System.exit(0);
            
            return;
        }
    }