求救!
非法的表达式开始!!
十万火急!!谢谢!!
在 public void actionPerformed(ActionEvent ae)开始提示:非法的表达式开始
把这个PUBLIC屏蔽后在下面的每个public行都出现:非法的表达式开始
各路高手救命啊
源码:
import java.awt.*;
import java.awt.event.*;
import java.rmi.*;
import java.rmi.server.*;
public class client extends Frame implements ActionListener,KeyListener,Notfiable{
int flag = 0;
String s;
String userName;
String welcome;
String input;
TextArea TextArea;
TextField inputText;
Label hello;
RemoteInterface server;
public client(){
addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e){
System.exit(0);
}
});
Panel up = new Panel();
Panel down = new Panel();
this.add(up,BorderLayout.NORTH);
this.add(down,BorderLayout.SOUTH);
welcome = "hello,stone!! ";
hello = new Label(welcome);
TextArea = new TextArea(s,15,50,TextArea.SCROLLBARS_BOTH);
TextArea.setEditable(false);
up.add(hello,BorderLayout.NORTH);
up.add(TextArea,BorderLayout.SOUTH);
inputText = new TextField(35);
Button send = new Button( "send ");