******************************************************************************
COMPLETE SOURCE CODE FOR : RemoveJFrameTitleBar.java
******************************************************************************
import javax.swing.JFrame;
public class RemoveJFrameTitleBar
{
public static void main(String[]args)
{
//Create a JFrame
JFrame frame=new JFrame();
//Method setUndecorated(true) will eliminate JFrame title bar
frame.setUndecorated(true);
//Set JFrame size to :
//Width : 400 pixels
//Height : 400 pixels
frame.setSize(400,400);
//Make JFrame visible. So we can see it.
frame.setVisible(true);
}
}
******************************************************************************
JUST COMPILE AND EXECUTE IT
******************************************************************************