I have a JDialog being displayed on screen and I want to simulate its movement (Drag from one location to another) based on a condition. Is there any way this can be done ?
I have a JDialog being displayed on screen and I want to simulate its
Share
See this piece of code below. I have just tested it and it works fine. It is just a proof of concept.
You can improve the code yourself:
Timerinstead of a regularThreadJust call this method from any Swing application and it will work.