public final class DataSetTopComponent extends TopComponent implements ExplorerManager.Provider, DatabaseManagerListener, GroupViewUIListener, MouseListener{
public DataSetTopComponent() {
addMouseListener(this);
}
@Override
public void mouseClicked(MouseEvent e) {
System.out.println("Mosue Clicked");
//throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
@Override
public void mousePressed(MouseEvent e) {
System.out.println("Mosue Pressed");
// //throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public void mouseReleased(MouseEvent e) {
// throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
@Override
public void mouseEntered(MouseEvent e) {
// throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
@Override
public void mouseExited(MouseEvent e) {
// throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}}
我想在最后一节topcomponent课上听mosue的动作,但它不起作用。有人能帮我吗?
不是:topcomponent类来自org.openide.windows.topcomponent
暂无答案!
目前还没有任何答案,快来回答吧!