javax.swing.JPanel.setLocale()方法的使用及代码示例

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

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

JPanel.setLocale介绍

暂无

代码示例

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

/**
 * Sets the locale.
 *
 * @param locale
 *            the new locale value
 * @see #getLocale
 */
@Override
public void setLocale(final Locale locale) {
  if (!initialized) {
    super.setLocale(locale);
  }
  else {
    this.locale = locale;
    super.setLocale(locale);
    init();
  }
}

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

@Override
public void setLocale(Locale locale) {
 this.locale = locale;
 super.setLocale(locale);
 init();
}

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

/**
 * Set the locale and initializes the new month names.
 *
 * @param l
 *            the new locale value
 * @see #getLocale
 */
@Override
public void setLocale(final Locale l) {
  if (!initialized) {
    super.setLocale(l);
  }
  else {
    locale = l;
    initNames();
  }
}

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

@Override
public void setLocale(Locale l) {
 super.setLocale(l);
 dateEditor.setLocale(l);
 calendarPanel.setLocale(l);
}

代码示例来源:origin: com.github.lgooddatepicker/LGoodDatePicker

/**
 * setLocale, The locale for a CalendarPanel should generally be set in the DatePickerSettings.
 * This function only exists to avoid confusion with the swing function Component.setLocale().
 *
 * This forwards any function calls to: CalendarPanel.getSettings().setLocale(). For the
 * complete Javadocs, see DatePickerSettings.setLocale().
 */
@Override
public void setLocale(Locale locale) {
  DatePickerSettings currentSettings = getSettings();
  if (currentSettings != null) {
    currentSettings.setLocale(locale);
  }
  super.setLocale(locale);
}

代码示例来源:origin: com.jidesoft/jide-oss

@Override
public void setLocale(Locale l) {
  unregisterKeyboardActions(this);
  super.setLocale(l);
  _op1 = new StringBuffer();
  _op2 = new StringBuffer();
  _displayFormat = NumberFormat.getNumberInstance(getLocale());
  configureNumberFormat();
  _actualCharPoint = getDisplayFormat().format(2.01).charAt(1);
  _pointButton.setText("" + _actualCharPoint);
  registerKeyboardActions(this, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
}

代码示例来源:origin: com.github.lgooddatepicker/LGoodDatePicker

/**
 * setLocale, The locale for a DatePicker should generally be set in the DatePickerSettings.
 * This function only exists to avoid confusion with the swing function Component.setLocale().
 *
 * This forwards any function calls to: DatePicker.getSettings().setLocale(). For the complete
 * Javadocs, see DatePickerSettings.setLocale().
 */
@Override
public void setLocale(Locale locale) {
  DatePickerSettings currentSettings = getSettings();
  if (currentSettings != null) {
    currentSettings.setLocale(locale);
  }
  super.setLocale(locale);
}

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

/**
 * Sets the locale property. This is a bound property.
 *
 * @param l
 *            the new locale value
 * @see #getLocale
 */
@Override
public void setLocale(final Locale l) {
  if (!initialized) {
    super.setLocale(l);
  }
  else {
    final Locale oldLocale = locale;
    locale = l;
    dayChooser.setLocale(locale);
    monthChooser.setLocale(locale);
    firePropertyChange("locale", oldLocale, locale);
  }
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop

private void updateChildLocale(Locale locale) {
  if (locale != null) {
    datePicker.getEditor().setLocale(locale);
    datePicker.getLinkPanel().setLocale(locale);
    datePicker.getMonthView().setLocale(locale);
  }
}

代码示例来源:origin: org.swinglabs.swingx/swingx-core

private void updateChildLocale(Locale locale) {
  if (locale != null) {
    datePicker.getEditor().setLocale(locale);
    datePicker.getLinkPanel().setLocale(locale);
    datePicker.getMonthView().setLocale(locale);
  }
}

代码示例来源:origin: com.haulmont.thirdparty/swingx-core

private void updateChildLocale(Locale locale) {
  if (locale != null) {
    datePicker.getEditor().setLocale(locale);
    datePicker.getLinkPanel().setLocale(locale);
    datePicker.getMonthView().setLocale(locale);
  }
}

代码示例来源:origin: org.swinglabs.swingx/swingx-all

private void updateChildLocale(Locale locale) {
  if (locale != null) {
    datePicker.getEditor().setLocale(locale);
    datePicker.getLinkPanel().setLocale(locale);
    datePicker.getMonthView().setLocale(locale);
  }
}

代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

private void updateChildLocale(Locale locale) {
  if (locale != null) {
    datePicker.getEditor().setLocale(locale);
    datePicker.getLinkPanel().setLocale(locale);
    datePicker.getMonthView().setLocale(locale);
  }
}

相关文章

JPanel类方法