Setting an Internationalizated String With the Form Editor

If you have a GUI application, you can use the Form Editor to internationalize the text strings in the GUI form.

To insert an internationalized string with the Form Editor:

  1. Open a form
  2. In the Component Inspector, locate the GUI component's property that you want to internationalize (for example, the text property of jLabel).
  3. Select the property and click the ellipsis (...) button to open the Property Editor.
  4. At the top of the dialog select Resource bundle mode.
  5. The Bundle Name field displays the .properties file into which the internationalized strings will be saved. To choose a different .properties file, click Browse. Alternatively, you can click New to create a new properties file in which to save the internationalized strings.
  6. The Replace Format field gives you a preview of the internationalized string. Click Format if you want to change the method used to generate the localized string.
  7. Click Arguments if you want to add arguments to the method call. You can only add arguments to the method call if you use the java.text.MessageFormat or org.openide.util.NbBundle.getMessage formats.
  8. Type in values for the Key and Value properties and click OK.
See also
Code Formats for Internationalized Strings
Adding Arguments for Message Formats
Internationalizing a Single File
Inserting an Internationalized String Into Source Code

Legal Notices