Create ResourceBundle dialog box
Use the Create ResourceBundle dialog box to specify the name of the localizable
resource class (or property file) and the type of the ResourceBundle. This resource class
collects special-purpose text strings in your project. One common use of ResourceBundles is to consolidate
strings that appear in your application's UI for translation when preparing an application for international markets. Another use is for corporate environments where the SQL statement is the responsibility of the Database Adminstrator (DBA) and therefore, separated from the application.
The Create ResourceBundle dialog box opens when you do any of the following:
Select the OK button to have JBuilder create the ResourceBundle class (if it doesn't
already exist) and add a new reference variable to that class. The ResourceBundle class
may contain all the localizable strings in your project.
Select Cancel if you do not want to create a new resource class.
By default, resource strings are stored in two separate resource classes:
- projectname.Res stores text strings found in your application or
applet that are intended for translation to different languages.
- projectname.SqlRes stores SQL-based strings such as
SQL strings for queries and escape sequences for stored procedures. These SQL strings
are intended to be modified by the DBA.
Name
Specifies the name of the resource class or property file that will be created. This
class will contain all strings in your application or applet that you have
specified should be resourced.
Type
The type of ResourceBundle to extend. Valid values for this field are JavaSoft's
ResourceBundle
extensions:
- ListResourceBundle:
is implemented as a .java class file. This class also offers better performance than
PropertyResourceBundle.
- PropertyResourceBundle:
is implemented as a .properties text file, which permits easy access to and modification of the
data without recompilation.