#三击

e783. 监听对JList中项双击和三击

//CreatealistString[]items={"A","B","C","D"};JListlist=newJList(items);//Addalistenerformouseclickslist.addMouseListener(newMouseAdapter(){publicvoidmouseClicke...

e648. 双击和三击事件

component.addMouseListener(newMyMouseListener());publicclassMyMouseListenerextendsMouseAdapter{publicvoidmouseClicked(MouseEventevt){if(evt.getClickCount()==3){...
代码星球 ·2021-02-11