Hi i've got a JPanel which contains a JButton. Now, i'm able to drag this JButton anywhere inside the panel fine. Normally, if i were to just click on this button, a new jframe would appear which contains a jtextarea.
My question is, that, everytime I click on the Jbutton to drag, when i drag it and then release it, the jbutton activates the actionperformed. So the jtextarea popup keeps appearing.
Any way to filter this so that the program recognises that when i drag, just drag, and when i click once, open the popup?