java命名空间javax.swing.plaf.basic类basiclistui的类成员方法:
createmouseinputlistener定义及介绍
本文导语:
createmouseinputlistener
protected mouseinputlistener createmouseinputlistener()
创建实现 mouseinputlistener 的委托。委托在 installui() 时被添加到相应的 java.awt.component 侦听器列表中。子类可以重写此方法以返回自定义 mouseinputlistener,例如
class my...
createmouseinputlistener
protected mouseinputlistener createmouseinputlistener()
- 创建实现 mouseinputlistener 的委托。委托在 installui() 时被添加到相应的 java.awt.component 侦听器列表中。子类可以重写此方法以返回自定义 mouseinputlistener,例如
class mylistui extends basiclistui {
protected mouseinputlistener createmouseinputlistener() {
return new mymouseinputhandler();
}
public class mymouseinputhandler extends mouseinputhandler {
public void mousemoved(mouseevent e) {
// do some extra work when the mouse moves
super.mousemoved(e);
}
}
}
- 另请参见:
basiclistui.mouseinputhandler
,
installui(169IT-IT技术资讯
iis7站长之家.jcomponent)