本文整理了Java中javax.swing.JPanel.setLocale()
方法的一些代码示例,展示了JPanel.setLocale()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JPanel.setLocale()
方法的具体详情如下:
包路径:javax.swing.JPanel
类名称: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);
}
}
内容来源于网络,如有侵权,请联系作者删除!