addMouseListener事件不生效
您那边是怎么写的呢,可以参考一下下面的代码。是可以正常进入的哈:
//新建一个地图窗口 IFormMap formMap = (FormMap) FormUtilities.fireNewWindowEvent(WindowType.MAP,"dyx"); MapControl mapControl = formMap.getMapControl(); mapControl.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { if(e.getButton()==3){ System.out.println("右键"); } } });