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 121137 - cleanup status bar initialization code: put in a method and surround in editor-fold
Summary: cleanup status bar initialization code: put in a method and surround in edito...
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-05 03:49 UTC by ggsize
Modified: 2008-05-05 12:44 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ggsize 2007-11-05 03:49:22 UTC
in 6.0beta2:

The auto generated code from the Desktop App wizard creates a bunch of stuff for status bar initialization, under the 
comment:
// status bar initialization - message timeout, idle icon and busy animation, etc

It would be cleaner if this initialization is put in it's own method, and this method collapsed in the editor
(surrounded by 
// <editor-fold defaultstate="collapsed" desc="Satus Bar initialization"> 
// </editor-fold>
)

Perhaps should also collapse "showAboutBox()"
Comment 1 ggsize 2007-11-05 04:14:39 UTC
OK, if you put the code in a method, then you'll get an error since the variables are declared final, but at minimum, 
please surround this block of code with editor-fold.

I'm not sure you really need to declare these variables final though.