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 54539

Summary: Confusing fold when form created
Product: guibuilder Reporter: Milan Kubec <mkubec>
Component: CodeAssignee: issues@guibuilder <issues>
Status: CLOSED WONTFIX    
Severity: blocker Keywords: UI, USABILITY
Priority: P3    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Milan Kubec 2005-02-04 10:43:38 UTC
[dev-200502021900, JDK 1.4.2_07]

When form file is generated user can see rectangle
in the source code with title 'Generated code'.
And user also can see that there should be method
'initComponents()' somewhere defined if it's
called in the constructor but cannot find it. IMO
the method name 'initComponents()' should not be
hidden by default since it can create confusion
for nonexperienced users. It saves 2 lines of code
but possible creates confusion.
Comment 1 Jan Stola 2005-02-04 13:10:26 UTC
The user can find the initComponents() method by 'Go To Source' action.
The guarded block sometimes doesn't contain only initComponents()
method. It can contain for example source code for a class that 
implements listeners in the form.
The current state has been agreed by UI guys => marking as won't fix.
Comment 2 Milan Kubec 2005-08-02 11:48:36 UTC
Closing.