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 - Divide initComponents() into individual steps and let them be reused any time - separate localization
Summary: Divide initComponents() into individual steps and let them be reused any time...
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
Depends on:
Reported: 2008-11-20 14:27 UTC by ondra_cifka
Modified: 2009-05-25 20:57 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
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.