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 6540

Summary: There shouldn`t be pack(); at the end of constructor in some templates.
Product: guibuilder Reporter: Jan Stola <jstola>
Component: CodeAssignee: Tomas Pavek <tpavek>
Status: CLOSED FIXED    
Severity: normal    
Priority: P4    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jan Stola 2000-05-04 23:24:53 UTC
There shouldn`t be pack(); statement at the end of constructor of following templates:
JDialog, JFrame, Dialog, Frame, Application, OKCancelDialog, MDIApplication.

The property _Code Generation | form size policy_ doesn`t have sense because
the pack(); statement overrides resize code at the end of initComponents method.

Note: When you delete this pack(); statement you should set "Generate pack()"
as a default value of _form size policy_ property.
Comment 1 Tomas Pavek 2000-07-18 16:25:59 UTC
*** Bug 6813 has been marked as a duplicate of this bug. ***
Comment 2 Marek Grummich 2000-07-25 09:08:59 UTC
Priority is changed to P4 (normal).
Comment 3 Tomas Pavek 2000-07-27 11:39:59 UTC
Fixed in the open source trunk.
Comment 4 Jan Stola 2000-08-03 11:59:59 UTC
[Build 2012]

1. Pack() is still in the constructor of Frame and Dialog.
2. There should be form_size_policy set to Generate pack()
   in the JInternallFrame template.
Comment 5 Jan Stola 2000-08-07 13:41:59 UTC
Verified in Build 2013.
Comment 6 Quality Engineering 2003-06-30 18:28:43 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.