Add localization code into the application file. The following example is from the SMP101 project.
//import resource bundle interface. SMP101SampleResource is the resource bundle interface created automatically import com.sybase.sup.samples.objectapi.SMP101SampleResource;
implements SMP101SampleResource private static ResourceBundle _resources = ResourceBundle.getBundle(BUNDLE_ID, BUNDLE_NAME);
InfoScreen(CustomerSampleScreen sampleScreen, Customer customer) { _sampleScreen = sampleScreen; _customer = customer; // Set up and display UI elements. Use resource bundle string to display. setTitle(_resources.getString(UPDATE_TITLE)); _fnameField = new BasicEditField(_resources.getString(FIELD_FNAME), customer.getFname(), BasicEditField.DEFAULT_MAXCHARS,Field.FOCUSABLE); _lnameField = new BasicEditField(_resources.getString(FIELD_LNAME), customer.getLname(), BasicEditField.DEFAULT_MAXCHARS,Field.FOCUSABLE); _companyField = new BasicEditField(_resources.getString(FIELD_COMPANY), customer.getCompany_name(), BasicEditField.DEFAULT_MAXCHARS, Field.FOCUSABLE); _addressField = new BasicEditField(_resources.getString(FIELD_ADDRESS), customer.getAddress(), BasicEditField.DEFAULT_MAXCHARS, Field.FOCUSABLE); _stateField = new BasicEditField(_resources.getString(FIELD_STATE), customer.getState(), BasicEditField.DEFAULT_MAXCHARS, Field.FOCUSABLE); _cityField = new BasicEditField(_resources.getString(FIELD_CITY), customer.getCity(), BasicEditField.DEFAULT_MAXCHARS, Field.FOCUSABLE); _phoneField = new BasicEditField(_resources.getString(FIELD_PHONE), customer.getPhone(), BasicEditField.DEFAULT_MAXCHARS, Field.FOCUSABLE); _zipField = new BasicEditField(_resources.getString(FIELD_ZIP), customer.getZip(), BasicEditField.DEFAULT_MAXCHARS, Field.FOCUSABLE);