action
public boolean action(Event evt,
Object what)
Deprecated. As of JDK version 1.1, should register this component as ActionListener on component which fires action events. 这是jdk1.1版里面的东东,现在已经不推荐使用了,该方法是Component类的一个方法。
这个应该是基于继承的事件处理。当使用add×××Listener()方法时,一般是授权给另一个对象或者本身来处理事件。
public boolean action(Event evt,
Object what)
Deprecated. As of JDK version 1.1, should register this component as ActionListener on component which fires action events. 这是jdk1.1版里面的东东,现在已经不推荐使用了,该方法是Component类的一个方法。
这个应该是基于继承的事件处理。当使用add×××Listener()方法时,一般是授权给另一个对象或者本身来处理事件。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货