In this section we are going to learn the coding methods to remove the minimize and maximize button from the title bar of a frame. We know that the title bar contains icon, minimize, maximize and close buttons. The following program provides the facility for doing it. That means, the frame or window displays on the screen without minimize and maximize button but it has only the icon and close button on the title bar that helps us at the time of closing the frame or window. See more information below.
Description of program:
This program displays a frame under the dialog box that hasn't the minimize and maximize button. It contains only a close button that performs only closing operation that means our window closes when you click on it. So follow the program for better understanding and you will find that the title bar has only close botton.
Here is the code of program:
import javax.swing.*;
|
Output of program:

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: Remove Minimize and Maximize Button of Frame in Java View All Comments
Post your Comment