In this section, you will learn how to remove the title bar of a frame or window in java. That means show the frame or window without title bar. The title bar of the frame or window which holds the icon, minimize button, maximize button and close button with the title of the frame. Following is the image of the frame without title bar:

Code Description:
setUndecorated(boolean):
This is the method of the JFrame class that sets the frame
decoration. It takes a boolean typed value either true or false.
If you passes the true then the frame will undecorated means the frame
will not show the title bar and if you passes the false then the frame
will show the title bar.
Here is the code of the program:
import javax.swing.*;
|
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: Removing the Title Bar of a Frame View All Comments
Post your Comment