下面列出了javax.swing.UIDefaults#addResourceBundle ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
Bug6530694() {
Locale.setDefault(Locale.GERMANY);
UIDefaults defs = UIManager.getDefaults();
defs.addResourceBundle("Bug6530694");
String str = defs.getString("testkey");
if (!"testvalue".equals(str)) {
throw new RuntimeException("Could not load the resource for de_DE locale");
}
}
Bug6530694() {
Locale.setDefault(Locale.GERMANY);
UIDefaults defs = UIManager.getDefaults();
defs.addResourceBundle("Bug6530694");
String str = defs.getString("testkey");
if (!"testvalue".equals(str)) {
throw new RuntimeException("Could not load the resource for de_DE locale");
}
}
Bug6530694() {
Locale.setDefault(Locale.GERMANY);
UIDefaults defs = UIManager.getDefaults();
defs.addResourceBundle("Bug6530694");
String str = defs.getString("testkey");
if (!"testvalue".equals(str)) {
throw new RuntimeException("Could not load the resource for de_DE locale");
}
}
Bug6530694() {
Locale.setDefault(Locale.GERMANY);
UIDefaults defs = UIManager.getDefaults();
defs.addResourceBundle("Bug6530694");
String str = defs.getString("testkey");
if (!"testvalue".equals(str)) {
throw new RuntimeException("Could not load the resource for de_DE locale");
}
}
Bug6530694() {
Locale.setDefault(Locale.GERMANY);
UIDefaults defs = UIManager.getDefaults();
defs.addResourceBundle("Bug6530694");
String str = defs.getString("testkey");
if (!"testvalue".equals(str)) {
throw new RuntimeException("Could not load the resource for de_DE locale");
}
}
/**
* Initialize the defaults table with the name of the other ResourceBundle
* used for getting localized defaults.
*/
protected void initOtherResourceBundle(UIDefaults table)
{
table.addResourceBundle( "org.jb2011.lnf.beautyeye.resources.beautyeye" );
}
/**
* Initialize the defaults table with the name of the other ResourceBundle
* used for getting localized defaults.
*/
protected void initOtherResourceBundle(UIDefaults table)
{
table.addResourceBundle( "org.jb2011.lnf.beautyeye.resources.beautyeye" );
}
/**
* Initialize the defaults table with the name of the ResourceBundle
* used for getting localized defaults. Also initialize the default
* locale used when no locale is passed into UIDefaults.get(). The
* default locale should generally not be relied upon. It is here for
* compatibility with releases prior to 1.4.
*/
private void initResourceBundle(UIDefaults table) {
table.setDefaultLocale( Locale.getDefault() );
table.addResourceBundle( "com.sun.swing.internal.plaf.basic.resources.basic" );
}
/**
* Initialize the defaults table with the name of the ResourceBundle
* used for getting localized defaults. Also initialize the default
* locale used when no locale is passed into UIDefaults.get(). The
* default locale should generally not be relied upon. It is here for
* compatibility with releases prior to 1.4.
*/
private void initResourceBundle(UIDefaults table) {
table.setDefaultLocale( Locale.getDefault() );
table.addResourceBundle( "com.sun.swing.internal.plaf.basic.resources.basic" );
}
/**
* Initialize the defaults table with the name of the ResourceBundle
* used for getting localized defaults. Also initialize the default
* locale used when no locale is passed into UIDefaults.get(). The
* default locale should generally not be relied upon. It is here for
* compatibility with releases prior to 1.4.
*/
private void initResourceBundle(UIDefaults table) {
table.setDefaultLocale( Locale.getDefault() );
table.addResourceBundle( "com.sun.swing.internal.plaf.basic.resources.basic" );
}
/**
* Initialize the defaults table with the name of the ResourceBundle
* used for getting localized defaults. Also initialize the default
* locale used when no locale is passed into UIDefaults.get(). The
* default locale should generally not be relied upon. It is here for
* compatibility with releases prior to 1.4.
*/
private void initResourceBundle(UIDefaults table) {
table.setDefaultLocale( Locale.getDefault() );
table.addResourceBundle( "com.sun.swing.internal.plaf.basic.resources.basic" );
}
/**
* Initialize the defaults table with the name of the ResourceBundle
* used for getting localized defaults. Also initialize the default
* locale used when no locale is passed into UIDefaults.get(). The
* default locale should generally not be relied upon. It is here for
* compatibility with releases prior to 1.4.
*/
private void initResourceBundle(UIDefaults table) {
table.setDefaultLocale( Locale.getDefault() );
table.addResourceBundle( "com.sun.swing.internal.plaf.basic.resources.basic" );
}
/**
* Initialize the defaults table with the name of the ResourceBundle
* used for getting localized defaults. Also initialize the default
* locale used when no locale is passed into UIDefaults.get(). The
* default locale should generally not be relied upon. It is here for
* compatibility with releases prior to 1.4.
*/
private void initResourceBundle(UIDefaults table) {
table.setDefaultLocale( Locale.getDefault() );
table.addResourceBundle( "com.sun.swing.internal.plaf.basic.resources.basic" );
}
/**
* Initialize the defaults table with the name of the ResourceBundle
* used for getting localized defaults. Also initialize the default
* locale used when no locale is passed into UIDefaults.get(). The
* default locale should generally not be relied upon. It is here for
* compatibility with releases prior to 1.4.
*/
private void initResourceBundle(UIDefaults table) {
table.setDefaultLocale( Locale.getDefault() );
table.addResourceBundle( "com.sun.swing.internal.plaf.basic.resources.basic" );
}
/**
* Initialize the defaults table with the name of the ResourceBundle
* used for getting localized defaults. Also initialize the default
* locale used when no locale is passed into UIDefaults.get(). The
* default locale should generally not be relied upon. It is here for
* compatibility with releases prior to 1.4.
*/
private void initResourceBundle(UIDefaults table) {
table.setDefaultLocale( Locale.getDefault() );
table.addResourceBundle( "com.sun.swing.internal.plaf.basic.resources.basic" );
}
/**
* Initialize the defaults table with the name of the ResourceBundle
* used for getting localized defaults. Also initialize the default
* locale used when no locale is passed into UIDefaults.get(). The
* default locale should generally not be relied upon. It is here for
* compatibility with releases prior to 1.4.
*/
private void initResourceBundle(UIDefaults table) {
table.setDefaultLocale( Locale.getDefault() );
table.addResourceBundle( "com.sun.swing.internal.plaf.basic.resources.basic" );
}
/**
* Initialize the defaults table with the name of the ResourceBundle
* used for getting localized defaults. Also initialize the default
* locale used when no locale is passed into UIDefaults.get(). The
* default locale should generally not be relied upon. It is here for
* compatibility with releases prior to 1.4.
*/
private void initResourceBundle(UIDefaults table) {
table.setDefaultLocale( Locale.getDefault() );
table.addResourceBundle( "com.sun.swing.internal.plaf.basic.resources.basic" );
}
/**
* Initialize the defaults table with the name of the ResourceBundle
* used for getting localized defaults. Also initialize the default
* locale used when no locale is passed into UIDefaults.get(). The
* default locale should generally not be relied upon. It is here for
* compatibility with releases prior to 1.4.
*/
private void initResourceBundle(UIDefaults table) {
table.setDefaultLocale( Locale.getDefault() );
table.addResourceBundle( "com.sun.swing.internal.plaf.basic.resources.basic" );
}
/**
* Initialize the defaults table with the name of the ResourceBundle
* used for getting localized defaults. Also initialize the default
* locale used when no locale is passed into UIDefaults.get(). The
* default locale should generally not be relied upon. It is here for
* compatibility with releases prior to 1.4.
*/
private void initResourceBundle(UIDefaults table) {
table.setDefaultLocale( Locale.getDefault() );
table.addResourceBundle( "com.sun.swing.internal.plaf.basic.resources.basic" );
}
/**
* Initialize the defaults table with the name of the ResourceBundle
* used for getting localized defaults. Also initialize the default
* locale used when no locale is passed into UIDefaults.get(). The
* default locale should generally not be relied upon. It is here for
* compatibility with releases prior to 1.4.
*/
private void initResourceBundle(UIDefaults table) {
table.setDefaultLocale( Locale.getDefault() );
table.addResourceBundle( "com.sun.swing.internal.plaf.basic.resources.basic" );
}