Borderless window

Source code below will show you how to create borderless window in java.

*****************************************************************
COMPLETE SOURCE CODE FOR : BorderlessWindow.java
*****************************************************************


import javax.swing.JWindow;
import javax.swing.JButton;

import java.awt.BorderLayout;

public class BorderlessWindow
{
public static void main(String[]args)
{
JButton button1=new JButton("MY BUTTON");
JWindow window=new JWindow();

window.getContentPane().add(button1,BorderLayout.CENTER);

window.setSize(400,400);

window.setVisible(true);
}
}


*****************************************************************
JUST COMPILE AND EXECUTE IT
*****************************************************************