enableEvents
protected final void enableEvents(long eventsToEnable) Enables the events defined by the specified event mask parameter to be delivered to this component. Event types are automatically enabled when a listener for that event type is added to the component. This method only needs to be invoked by subclasses of Component which desire to have the specified event types delivered to processEvent regardless of whether or not a listener is registered. Parameters:eventsToEnable - the event mask defining the event types
protected final void enableEvents(long eventsToEnable) Enables the events defined by the specified event mask parameter to be delivered to this component. Event types are automatically enabled when a listener for that event type is added to the component. This method only needs to be invoked by subclasses of Component which desire to have the specified event types delivered to processEvent regardless of whether or not a listener is registered. Parameters:eventsToEnable - the event mask defining the event types
解决方案 »
- 寻求简单方法!!
- 异常:java.sql.SQLException: General error
- 找applet的socket通信方面的英文文献
- 初学者菜鸟问题-回答详细给满分..
- 请问如何关闭指定路径的文件或文件夹,前提在win已打开??
- 一个基本的JAVA问题!!!
- 做菜鸟真的很痛苦!这么简单的问题都搞不懂。怎么样才能继承类啊。
- 新开通第一问:关于JNI原理。
- Java中对XML的处理
- 请问:哪位高人有做过大批量数据打印的代码?能否提供预览功能的实现?分我不在乎,您开个口,只求能解决问题
- ****用objectOutputStream.writeObject(o)写文件,如何支持从文件尾开始续写?***
- 关于thinking in java 2 中的com.bruceeckel包在那能找到??
WINDOW_EVENT_MASK
public static final long WINDOW_EVENT_MASK The event mask for selecting window events.此外还有这个:
ACTION_EVENT_MASK
public static final long ACTION_EVENT_MASK The event mask for selecting action events
在调用的的方法enableEvents(...)就能想监听器一样,实现动作了!