在里层的事件处理方法中,把该事件消耗掉,行吗?
e.consume();

解决方案 »

  1.   

    太长了啊,具体就是component对象    
       addMouseListener(new CompMouseProcess());
       addMouseMotionListener(new CompMouseMotionProcess());
    实现component的拖动和其他的功能;Panel对象
       addMouseListener(new PaneMouseProcess());
       addMouseMotionListener(new PaneMouseMotionProcess());
    实现画图等其他功能。问题是我要在component上开始画线时,触发了component的监听对象,进行了拖动的操作,有没有办法解决这个冲突呢,不知我这么说说清楚了没有,请多包涵:)etmpoa