FileDocCategorySizeDatePackage
I18N.javaAPI DocJMF 2.1.1e1049Mon May 12 12:21:00 BST 2003com.sun.media.customizer

I18N

public class I18N extends Object

Fields Summary
public static ResourceBundle
bundle
Constructors Summary
Methods Summary
public static java.lang.StringgetResource(java.lang.String key)


        
       //$$ Testing - cania
       //$$ java.util.Locale.setDefault(Locale.GERMANY);
       Locale currentLocale = java.util.Locale.getDefault();

       if (bundle == null) {
           try{
               bundle = java.util.ResourceBundle.getBundle("com.sun.media.customizer.Props", currentLocale);
           } catch(java.util.MissingResourceException e){
	       e.printStackTrace();
               System.out.println("Could not load Resources");
               System.exit(0);
           }
        }
        String value = new String("");
        try{
            value = (String) bundle.getObject(key);
        } catch (java.util.MissingResourceException e){
	    System.out.println("Could not find " + key);}
        return value;