I Want to execute the mouseEntered only IF the mouse is currently pressed down, basically this:
@Override
public void mouseEntered(MouseEvent e) {
if(e.mouseDown()){
//Do stuff
}
}
can I do it like this, or do I need a mouse motion listener or what?
Thanks!
EDIT: Sorry should have made this more clear, but I need the mouse to be press down Before it enters the component, its like holding down the mouse and hovering over the component activates the listener