How to implement the os feature snap windows?

18 Views Asked by At

I want to create a JFrame with a custom titlebar and thats why i removed the default one:

this.setUndecorated(true);

Now the titlebar is gone but there are also a few features missing. One of them is a Windows os feature that allows you to snap the frame to a certain position when you dragg the frame to the top, left or right.

snap Windows

Is there a way to implement this feature with an undecorated frame?

0

There are 0 best solutions below