title: mouse pressed(component a) -> drag -> released (component b) as an event in java
body: <p>basically i want to create the same machanic used in hearthstone. you press a card, drag it to the playing field and release, causing an event to trigger. ive been searching for tutorials for a while now and cant seem to figure it out. im trying to accomplish this with MouseListener and MouseMotionListener. If anyone can just give me a tiny snippet of how you would write the code for the methods mousePressed, mouseDragged and mouseReleased say from one JPanel to another I would greatly appreciate. thanks.</p>