Skip to content

Small library that enables frames without native decorations to snap to and from the screen edges

License

Notifications You must be signed in to change notification settings

topalavlad/Snap4J

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snap4J

Small library that enables frames without native decorations to snap to and from the screen edges.

The easiest way to use this library is adding the following line of code snap4JListener = new Snap4JListener(); or if you want to limit the possible states: snap4JListener = new Snap4JListener(EnumSet.of(NextWindowState.NORMAL, NextWindowState.MAXIMIZED));

By instantiating a Snap4JListener() all drag events on JFrame instances will be handled.

Known limitations: - no restore from maximized vertically because Windows doesn't natively support vertically maximized Java frames.

About

Small library that enables frames without native decorations to snap to and from the screen edges

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages