Hijacks normal mouse input from reaching the specified component's normal listeners. There is one special consideration it makes for your component: it tracks mouse movement events and will relay the last one to each MouseMotionListener before reinstating it on the component. Typically this will be used in conjunction with installation of your own listeners, like so:
public void startStuff (Component comp) { _hijacker = new MouseHijacker(comp); comp.addMouseListener(this); } public void mouseClicked (MouseEvent evt) { doStuff(); endStuff(); } protected void endStuff () { Component comp = _hijacker.release(); comp.removeMouseListener(this); } protected MouseHijacker _hijacker;