Hi to everyone. I’m trying to create a custom window class inside my GLCanvas. Ofcourse I’d like drag and drop support for my windows so I can move them around. What listener should I use so I can track mouse motion when a mouse button is pressed? I tried this:
public void mouseClicked(MouseEvent e) {
if (e.getID() == MouseEvent.MOUSE_DRAGGED) {
System.out.println("Mouse Dragged!");
} else if (e.getButton() == MouseEvent.BUTTON3) {
//......etc etc
but it doesn’t work. Any help?