求助.大家帮忙解释这个错误信息."illegal character: /12288"

import java.applet.*;
import java.awt.*;
import java.awt.event.*;

public class Login extends Applet implements ActionListener
{
  public TextField username,passwd;
 public String user="public",pwd="aaa",displayStr="";

 public void init()
 {
    Label L1=new Label("用户名:");
  add(L1);
  username=new TextField(10);
  add(username);
  Label L2=new Label("口令:");
  add(L2);
  passwd=new TextField(10);
  passwd.setEchoChar('#');
  add(passwd);
  Button button1=new Button("登录");
  button1.addActionListener(this);
  add(button1);
 }

 public void paint(Graphics g)
 {
    g.drawString(displayStr,50,120);
 }

 public void actionPerformed(ActionEvent event)
 {
    String arg=event.getActionCommand();
  if (arg=="登录")
    {
       String userIn=username.getText();
    String pwdIn=passwd.getText();
    if (userIn.equals(user) && pwdIn.equals(pwd))
     displayStr="欢迎登录:";
    else
     displayStr="用户名或口令不正确,登录失败!";
    repaint();
        }
   }
}

编译的时候出现"illegal character: /12288"这个错误.

请大家帮着看看.谢谢

你可能感兴趣的:(求助.大家帮忙解释这个错误信息."illegal character: /12288")