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 - There shouldn`t be pack(); at the end of constructor in some templates.
Summary: There shouldn`t be pack(); at the end of constructor in some ...
Status: CLOSED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: Tomas Pavek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-05-04 23:24 UTC by Jan Stola
Modified: 2003-06-30 18:28 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 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.