javax.swing.JComponent.getDefaultLocale()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(113)

本文整理了Java中javax.swing.JComponent.getDefaultLocale()方法的一些代码示例,展示了JComponent.getDefaultLocale()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JComponent.getDefaultLocale()方法的具体详情如下:
包路径:javax.swing.JComponent
类名称:JComponent
方法名:getDefaultLocale

JComponent.getDefaultLocale介绍

暂无

代码示例

代码示例来源:origin: geotools/geotools

/**
 * Returns the locale for the specified component, or a default one if the component is not yet
 * part of a container hierarchy.
 */
public static Locale getLocale(final Component component) {
  if (component != null)
    try {
      return component.getLocale();
    } catch (IllegalComponentStateException ignore) {
      // Ignore. Will returns de default locale below.
    }
  return JComponent.getDefaultLocale();
}

代码示例来源:origin: org.softsmithy.lib/lib-core

/** Creates a new instance of IntegerFormatter */
public IntegerFormatter() {
 this(JComponent.getDefaultLocale());// better than Locale.getDefault()?
}

代码示例来源:origin: org.softsmithy.lib/lib-core

/** Creates a new instance of IntegerFormatter */
public ByteFormatter() {
 this(JComponent.getDefaultLocale());// better than Locale.getDefault()?
}

代码示例来源:origin: org.softsmithy.lib/softsmithy-lib-swing

/** Creates a new instance of ShortFormatter */
public ShortFormatter() {
 this(JComponent.getDefaultLocale());// better than Locale.getDefault()?
}

代码示例来源:origin: org.softsmithy.lib/softsmithy-lib-swing

/** Creates a new instance of IntegerFormatter */
public LongFormatter() {
 this(JComponent.getDefaultLocale());// better than Locale.getDefault()?
}

代码示例来源:origin: org.softsmithy.lib/lib-core

/** Creates a new instance of IntegerFormatter */
public LongFormatter() {
 this(JComponent.getDefaultLocale());// better than Locale.getDefault()?
}

代码示例来源:origin: org.softsmithy.lib/lib-core

/** Creates a new instance of ShortFormatter */
public ShortFormatter() {
 this(JComponent.getDefaultLocale());// better than Locale.getDefault()?
}

代码示例来源:origin: org.softsmithy.lib/softsmithy-lib-swing

/** Creates a new instance of IntegerFormatter */
public IntegerFormatter() {
 this(JComponent.getDefaultLocale());// better than Locale.getDefault()?
}

代码示例来源:origin: org.softsmithy.lib/softsmithy-lib-swing

/** Creates a new instance of IntegerFormatter */
public ByteFormatter() {
 this(JComponent.getDefaultLocale());// better than Locale.getDefault()?
}

代码示例来源:origin: org.softsmithy.lib/lib-core

/** Creates a new instance of IntegerFormatter */
public WholeNumberFormatter() {
 this(JComponent.getDefaultLocale());// better than Locale.getDefault()?
}

代码示例来源:origin: org.softsmithy.lib/lib-core

public ByteFormatter(byte minByteValue, byte maxByteValue){
 this(minByteValue, maxByteValue, JComponent.getDefaultLocale());// better than Locale.getDefault()?
}

代码示例来源:origin: org.softsmithy.lib/lib-core

public LocalizedDoubleFormatter() {
 this(JComponent.getDefaultLocale());// better than Locale.getDefault()?
}

代码示例来源:origin: org.softsmithy.lib/lib-core

public LocalizedDoubleFormatter(double minDoubleValue, double maxDoubleValue){
 this(minDoubleValue, maxDoubleValue, JComponent.getDefaultLocale());// better than Locale.getDefault()?
}

代码示例来源:origin: org.softsmithy.lib/softsmithy-lib-swing

public WholeNumberFormatter(BigInteger minIntValue, BigInteger maxIntValue){
 this(minIntValue, maxIntValue, JComponent.getDefaultLocale());// better than Locale.getDefault()?
}

代码示例来源:origin: org.softsmithy.lib/lib-core

public LongFormatter(long minLongValue, long maxLongValue){
 this(minLongValue, maxLongValue, JComponent.getDefaultLocale());// better than Locale.getDefault()?
}

代码示例来源:origin: org.softsmithy.lib/lib-core

/** Creates a new instance of IntegerFormatter */
public LocalizedRealNumberFormatter() {
 this(JComponent.getDefaultLocale()); // better than Locale.getDefault()?
}

代码示例来源:origin: org.softsmithy.lib/softsmithy-lib-swing

/** Creates a new instance of IntegerFormatter */
public WholeNumberFormatter() {
 this(JComponent.getDefaultLocale());// better than Locale.getDefault()?
}

代码示例来源:origin: org.softsmithy.lib/softsmithy-lib-swing

/** Creates a new instance of IntegerFormatter */
public LocalizedRealNumberFormatter() {
 this(JComponent.getDefaultLocale()); // better than Locale.getDefault()?
}

代码示例来源:origin: org.geotools/gt-metadata

/**
 * Returns the locale for the specified component, or a default one if the component
 * is not yet part of a container hierarchy.
 */
public static Locale getLocale(final Component component) {
  if (component != null) try {
    return component.getLocale();
  } catch (IllegalComponentStateException ignore) {
    // Ignore. Will returns de default locale below.
  }
  return JComponent.getDefaultLocale();
}

代码示例来源:origin: org.geotools/gt2-metadata

/**
 * Returns the locale for the specified component, or a default one if the component
 * is not yet part of a container hierarchy.
 */
public static Locale getLocale(final Component component) {
  if (component != null) try {
    return component.getLocale();
  } catch (IllegalComponentStateException ignore) {
    // Ignore. Will returns de default locale below.
  }
  return JComponent.getDefaultLocale();
}

相关文章

JComponent类方法