Listing 3. Heed the Calling Calling the getString() method with key information brings you a correct text string.
// Obtain system locale
      String lan = this.getLocale().getLanguage();
// TMX date load
      try{
         XMLResourceBundle res = new XMLResourceBundle 
            ("SampleTMX.xml", lan.toUpperCase());

         Label1.setText(res.getString("Select_an_account"));

         RadioButton1.setText(res.getString(
            "Checking_account"));
         RadioButton2.setText(res.getString("Saving_account"));
         Button1.setText(res.getString("Submit"));

      }catch (MissingResourceException 
			e){System.out.println(e.getMessage());}