Dragging Undecorated Window
in
Programming Questions
•
7 months ago
Hi all,
I have made an application with undecorated window using frame.undecoreted(false); method. Now
I want to drag my application window using
frame.setLocation() method and in this I am passing my mouse location mouseX & mouseY parameters in the function
frame.setLocation(mouseX,mouseY);
but it is not working properly can anyone suggest me some hint or piece of code for understanding the concept.
I have seen in a post where the dragging was done by using some Point method
Point m = Mouse.Info......
frame.setLocation(m.x,m.y); ..... that was also not working properly because when I used this method in the application and clicked on the the screen to drag, window started shaking
1