@Override
    public void actionPerformed(ActionEvent e)
    {
       String str = new String(text.getText());
       //String[] str_array = str.split()
       /*if(str.contains("1234567890"))
       {*/
           int port_number = Integer.parseInt(str);
           this.label.setText("监听中");
           this.button.setText("停止服务器");
           this.button.setEnabled(false);
          // if(port_number > 0 && port_number <= 65535)
          // {
               try
               {
                   ServerSocket serverSocket = new ServerSocket(port_number);
                   while(true)
                   {
                       Socket socket = serverSocket.accept();
                       new ServerInputThread(socket, this).start();
                   }
               }
               catch (IOException e1)
               {
                   e1.printStackTrace();
               }
          // }
          /* else
           {
               //new JDialog(this, "只能是0到65535的数字之间");
               JOptionPane.showMessageDialog( null,"只能是0到65535的数字之间!");
           }
           
       }
       else
       {
           //new JDialog(this, "只能是0到65535的数字之间");
           JOptionPane.showMessageDialog( null,"只能是0到65535的数字之间!");
       }*/
    }