Frame Fra=new Frame("Login");
Ta1=new TextArea("TextArea");
Fra.add(Ta1);
Ta1.addTextListener(this);//这不是注册TextArea的监听程序吗?
为什么这段代码用不起来呢??
错误是:can not be applied (..)
那相应监听接口的方法是什么呢??
Ta1=new TextArea("TextArea");
Fra.add(Ta1);
Ta1.addTextListener(this);//这不是注册TextArea的监听程序吗?
为什么这段代码用不起来呢??
错误是:can not be applied (..)
那相应监听接口的方法是什么呢??
我是添加TextArea的监听程序啊?