Here, you will learn how to display the frame or window without title bar in java. This type of the frame is mostly used to show the splash screen at starting of the application.
In this program, you can see that the method setUndecorated() has been used to hide the title bar of the frame or window. The frame is initially by default decorated. If you pass the boolean value true to the setUndecorated() method of the Frame class then the frame will look without the title bar otherwise the frame will be in the default format. The method setUndecorated() takes a boolean valued argument either true or false.
Here is the code of the program :
Posted on: April 17, 2007 If you enjoyed this post then why not add us on Google+? Add us to your Circles