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 153539

Summary: Divide initComponents() into individual steps and let them be reused any time - separate localization
Product: guibuilder Reporter: ondra_cifka <ondra_cifka>
Component: CodeAssignee: issues@guibuilder <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description ondra_cifka 2008-11-20 14:27:02 UTC
I think that the initComponents method is not very well designed. My opinion is that the steps should be more systematic
(e. g. first initialize everything, then add everything) and placed in individual methods. Especially localization
(either using ResourceBundle or ResourceMap from appframework) should be separated and take place after everything is
set. The reason is that if you wanted to change the language of the application during the run, you would have to do all
the localization steps that were already done by the generated code manually. Using the localization placed in an
individual method, say localize(), it would be no problem to relocalize the application - you would just call
Locale.setDefault(newLocale) and then localize().
Comment 1 Jiri Vagner 2008-11-20 19:46:54 UTC
Well, it sounds reasonable to me, I will discuss it with Matisse developers.