简体   繁体   中英

Netbeans login form using JFRAME

I want to show a login page in netbeans using Jframe . So i have done a login form in that. but i want to cancel the maximize button which showing in the run time upper side between of the minimize and closing button (in all windows page). is it possible?

There are two ways that you can approach this.

a) make the JFrame not resizable. This will not remove the maximize button but instead it will disable it.

    JFrame theFrame = new JFrame();
    theFrame.setSize(300,300);
    theFrame.setResizable(false);
    theFrame.setVisible(true);

b) Use a JDialog instead.

Hope this answers your question

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM