Borderless Window in Java

As I wrote, I recently found the borderless-mode for TF2. So, how would you do that … in Java?

Easy:

javax.swing.JWindow window = new javax.swing.JWindow();
window.setSize(300, 300);
window.setVisible(true);

So a simple JWindow, if you’re not using a GUI editor this is easy, is already borderless.