Replacing the Code Format
You can choose a resource bundle format other than the
default or create your own custom format.
To change the format of the internationalized source code:
- In the Internationalize dialog box or the ResourceBundle property
editor, click the ellipsis (...) button to the right of the Replace
Format text field.
- In the Replace Code Format editor, select the bundle format type you prefer
from the combo box.
- Use the identifier format when you want to cache the bundle
in a specific class.
- Use the Utilities format when you want to have a single
resource bundle for all classes. Use this format if you want to use
your own custom classes, for instance.
- Use the java.util.ResourceBundle.getBundle if you want to use the
standard Java utility class.
- Use org.openide.util.NbBundle.getBundle if you want to use the
NetBeans utility class.
- Use the java.text.MessageFormat if you want to use the
standard Java .
- Use the org.openide.util.NbBundle.getMessage if you
want to use the NetBeans message format.
To create your own custom format:
- In the Internationalize dialog box, click the ellipsis (...)
button to the right of the Replace Format text field.
- In the Replace Code Format editor, delete the default format type
displayed in the combo box textfield.
- Type the format you want to use. You can double-click on the
formats in the display pane to incorporate them into your custom format.
Legal Notices