本文整理了Java中javax.swing.JButton.getLocale()
方法的一些代码示例,展示了JButton.getLocale()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JButton.getLocale()
方法的具体详情如下:
包路径:javax.swing.JButton
类名称:JButton
方法名:getLocale
暂无
代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop
/**
* {@inheritDoc}
*/
protected void reinit() {
super.reinit();
ErrorInfo info = pane == null ? null : pane.getErrorInfo();
titleLabel.setText(info == null ? "Unknown Error" : info.getTitle());
Object finePrint = pane.getClientProperty("fine-print");
String text = finePrint == null ? null : finePrint.toString();
disclaimerText.setText(text);
disclaimerText.setVisible(text != null);
if (info != null && info.getErrorLevel() == ErrorLevel.FATAL) {
closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".fatal_button_text", closeButton.getLocale()));
} else {
closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
}
}
代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core
/**
* {@inheritDoc}
*/
@Override
protected void reinit() {
super.reinit();
ErrorInfo info = pane == null ? null : pane.getErrorInfo();
titleLabel.setText(info == null ? "Unknown Error" : info.getTitle());
Object finePrint = pane.getClientProperty("fine-print");
String text = finePrint == null ? null : finePrint.toString();
disclaimerText.setText(text);
disclaimerText.setVisible(text != null);
if (info != null && info.getErrorLevel() == ErrorLevel.FATAL) {
closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".fatal_button_text", closeButton.getLocale()));
} else {
closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
}
}
代码示例来源:origin: org.swinglabs.swingx/swingx-core
/**
* {@inheritDoc}
*/
@Override
protected void reinit() {
super.reinit();
ErrorInfo info = pane == null ? null : pane.getErrorInfo();
titleLabel.setText(info == null ? "Unknown Error" : info.getTitle());
Object finePrint = pane.getClientProperty("fine-print");
String text = finePrint == null ? null : finePrint.toString();
disclaimerText.setText(text);
disclaimerText.setVisible(text != null);
if (info != null && info.getErrorLevel() == ErrorLevel.FATAL) {
closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".fatal_button_text", closeButton.getLocale()));
} else {
closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
}
}
代码示例来源:origin: org.swinglabs.swingx/swingx-all
/**
* {@inheritDoc}
*/
@Override
protected void reinit() {
super.reinit();
ErrorInfo info = pane == null ? null : pane.getErrorInfo();
titleLabel.setText(info == null ? "Unknown Error" : info.getTitle());
Object finePrint = pane.getClientProperty("fine-print");
String text = finePrint == null ? null : finePrint.toString();
disclaimerText.setText(text);
disclaimerText.setVisible(text != null);
if (info != null && info.getErrorLevel() == ErrorLevel.FATAL) {
closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".fatal_button_text", closeButton.getLocale()));
} else {
closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
}
}
代码示例来源:origin: com.haulmont.thirdparty/swingx-core
/**
* {@inheritDoc}
*/
@Override
protected void reinit() {
super.reinit();
ErrorInfo info = pane == null ? null : pane.getErrorInfo();
titleLabel.setText(info == null ? "Unknown Error" : info.getTitle());
Object finePrint = pane.getClientProperty("fine-print");
String text = finePrint == null ? null : finePrint.toString();
disclaimerText.setText(text);
disclaimerText.setVisible(text != null);
if (info != null && info.getErrorLevel() == ErrorLevel.FATAL) {
closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".fatal_button_text", closeButton.getLocale()));
} else {
closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
}
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop
detailButton.setText(UIManagerExt.getString(CLASS_NAME + ".details_expand_text", detailButton.getLocale()));
closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
代码示例来源:origin: com.haulmont.thirdparty/swingx-core
detailButton.setText(UIManagerExt.getString(CLASS_NAME + ".details_expand_text", detailButton.getLocale()));
closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
代码示例来源:origin: org.swinglabs.swingx/swingx-core
detailButton.setText(UIManagerExt.getString(CLASS_NAME + ".details_expand_text", detailButton.getLocale()));
closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core
detailButton.setText(UIManagerExt.getString(CLASS_NAME + ".details_expand_text", detailButton.getLocale()));
closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
代码示例来源:origin: org.swinglabs.swingx/swingx-all
detailButton.setText(UIManagerExt.getString(CLASS_NAME + ".details_expand_text", detailButton.getLocale()));
closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop
setErrorMessage("");
closeButton.setText(UIManagerExt.getString(
CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
setDetails("");
CLASS_NAME + ".fatal_button_text", closeButton.getLocale()));
} else {
closeButton.setText(UIManagerExt.getString(
CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
代码示例来源:origin: com.haulmont.thirdparty/swingx-core
setErrorMessage("");
closeButton.setText(UIManagerExt.getString(
CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
setDetails("");
CLASS_NAME + ".fatal_button_text", closeButton.getLocale()));
} else {
closeButton.setText(UIManagerExt.getString(
CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
代码示例来源:origin: org.swinglabs.swingx/swingx-core
setErrorMessage("");
closeButton.setText(UIManagerExt.getString(
CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
setDetails("");
CLASS_NAME + ".fatal_button_text", closeButton.getLocale()));
} else {
closeButton.setText(UIManagerExt.getString(
CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
代码示例来源:origin: org.swinglabs.swingx/swingx-all
setErrorMessage("");
closeButton.setText(UIManagerExt.getString(
CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
setDetails("");
CLASS_NAME + ".fatal_button_text", closeButton.getLocale()));
} else {
closeButton.setText(UIManagerExt.getString(
CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core
setErrorMessage("");
closeButton.setText(UIManagerExt.getString(
CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
setDetails("");
CLASS_NAME + ".fatal_button_text", closeButton.getLocale()));
} else {
closeButton.setText(UIManagerExt.getString(
CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
内容来源于网络,如有侵权,请联系作者删除!