简体   繁体   English

使用JFRAME的Netbeans登录表单

[英]Netbeans login form using JFRAME

I want to show a login page in netbeans using Jframe . 我想使用Jframe在netbeans中显示一个登录页面。 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. a)使JFrame不可调整大小。 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. b)改用JDialog。

Hope this answers your question 希望这能回答您的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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