This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 138886 - Please, why can't I disable Window Resizing off the Desktop Application templace's default FrameView Window?
Summary: Please, why can't I disable Window Resizing off the Desktop Application templ...
Status: RESOLVED INVALID
Alias: None
Product: guibuilder
Classification: Unclassified
Component: App Framework (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-03 08:22 UTC by zachary_software_developer
Modified: 2008-07-03 11:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zachary_software_developer 2008-07-03 08:22:27 UTC
I am coding a smallish application using J2SE and Netbeans 6.01.

It's only a one window program, and I have used the standard Java Desktop Application template under New Project to get
my start.

It's not worth the effort using the fancy layout, so I've just gone with the standard "Absolute Layout" supplied with
netbeans.

However, I want to disable all windows resizing.

I know that I can normally go Window.setResize(false); to achieve this,
and I have tried setting both a Minimum and Maximum size on the Application's JFrame using a Dimension object,
but to no avail.

Because I can't solve this problem, and don't understand the nature of the SingleFrameApplication/FrameView classes, I
can't figure out any way to prevent my window from resizing AT ALL.  I Can't seem to access the JFrame Window's size
property through a property inspector option either.

Please, how may I lock off windows resizing on the default JFrame Window supplied by the Desktop Application option in
the New Project wizard of Netbeans 6.01?
Comment 1 Jan Stola 2008-07-03 10:56:22 UTC
Please, do not use our bug-tracking system for asking question. You should use nbusers@netbeans.org mailing list 
instead.
Comment 2 Jan Stola 2008-07-03 11:03:32 UTC
FYI: By now, you cannot access properties of the JFrame (that corresponds to FrameView) directly (in GUI builder's UI), 
but you can can, for example, access it using getFrame() method of the FrameView e.g. you can make your window non-
resizable by adding getFrame().setResizable(false); into constructor of your ApplicationView.