简体   繁体   中英

Prevent Window resizing on Java (Netbeans)

im using Netbeans 7 for make a desktop application.

But i can't find how to disable Window Resizing or Maximizing in the Gui Builder!, someone can help me?

You cannot access properties of the JFrame (that corresponds to FrameView) directly (in GUI builder's UI), but you can can access it using getFrame() on the FrameView.

For example, to make frame not resizable:

getFrame().setResizable(false)

in the ApplicationView constructor

右键单击框架->属性->可调整大小(取消选中)

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