javax.swing.JButton.getLocale()方法的使用及代码示例

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

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

JButton.getLocale介绍

暂无

代码示例

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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. protected void reinit() {
  5. super.reinit();
  6. ErrorInfo info = pane == null ? null : pane.getErrorInfo();
  7. titleLabel.setText(info == null ? "Unknown Error" : info.getTitle());
  8. Object finePrint = pane.getClientProperty("fine-print");
  9. String text = finePrint == null ? null : finePrint.toString();
  10. disclaimerText.setText(text);
  11. disclaimerText.setVisible(text != null);
  12. if (info != null && info.getErrorLevel() == ErrorLevel.FATAL) {
  13. closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".fatal_button_text", closeButton.getLocale()));
  14. } else {
  15. closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
  16. }
  17. }

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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. protected void reinit() {
  6. super.reinit();
  7. ErrorInfo info = pane == null ? null : pane.getErrorInfo();
  8. titleLabel.setText(info == null ? "Unknown Error" : info.getTitle());
  9. Object finePrint = pane.getClientProperty("fine-print");
  10. String text = finePrint == null ? null : finePrint.toString();
  11. disclaimerText.setText(text);
  12. disclaimerText.setVisible(text != null);
  13. if (info != null && info.getErrorLevel() == ErrorLevel.FATAL) {
  14. closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".fatal_button_text", closeButton.getLocale()));
  15. } else {
  16. closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
  17. }
  18. }

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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. protected void reinit() {
  6. super.reinit();
  7. ErrorInfo info = pane == null ? null : pane.getErrorInfo();
  8. titleLabel.setText(info == null ? "Unknown Error" : info.getTitle());
  9. Object finePrint = pane.getClientProperty("fine-print");
  10. String text = finePrint == null ? null : finePrint.toString();
  11. disclaimerText.setText(text);
  12. disclaimerText.setVisible(text != null);
  13. if (info != null && info.getErrorLevel() == ErrorLevel.FATAL) {
  14. closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".fatal_button_text", closeButton.getLocale()));
  15. } else {
  16. closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
  17. }
  18. }

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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. protected void reinit() {
  6. super.reinit();
  7. ErrorInfo info = pane == null ? null : pane.getErrorInfo();
  8. titleLabel.setText(info == null ? "Unknown Error" : info.getTitle());
  9. Object finePrint = pane.getClientProperty("fine-print");
  10. String text = finePrint == null ? null : finePrint.toString();
  11. disclaimerText.setText(text);
  12. disclaimerText.setVisible(text != null);
  13. if (info != null && info.getErrorLevel() == ErrorLevel.FATAL) {
  14. closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".fatal_button_text", closeButton.getLocale()));
  15. } else {
  16. closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
  17. }
  18. }

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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. protected void reinit() {
  6. super.reinit();
  7. ErrorInfo info = pane == null ? null : pane.getErrorInfo();
  8. titleLabel.setText(info == null ? "Unknown Error" : info.getTitle());
  9. Object finePrint = pane.getClientProperty("fine-print");
  10. String text = finePrint == null ? null : finePrint.toString();
  11. disclaimerText.setText(text);
  12. disclaimerText.setVisible(text != null);
  13. if (info != null && info.getErrorLevel() == ErrorLevel.FATAL) {
  14. closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".fatal_button_text", closeButton.getLocale()));
  15. } else {
  16. closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
  17. }
  18. }

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

  1. detailButton.setText(UIManagerExt.getString(CLASS_NAME + ".details_expand_text", detailButton.getLocale()));
  2. closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".ok_button_text", closeButton.getLocale()));

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

  1. detailButton.setText(UIManagerExt.getString(CLASS_NAME + ".details_expand_text", detailButton.getLocale()));
  2. closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".ok_button_text", closeButton.getLocale()));

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

  1. detailButton.setText(UIManagerExt.getString(CLASS_NAME + ".details_expand_text", detailButton.getLocale()));
  2. closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".ok_button_text", closeButton.getLocale()));

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

  1. detailButton.setText(UIManagerExt.getString(CLASS_NAME + ".details_expand_text", detailButton.getLocale()));
  2. closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".ok_button_text", closeButton.getLocale()));

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

  1. detailButton.setText(UIManagerExt.getString(CLASS_NAME + ".details_expand_text", detailButton.getLocale()));
  2. closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".ok_button_text", closeButton.getLocale()));

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

  1. setErrorMessage("");
  2. closeButton.setText(UIManagerExt.getString(
  3. CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
  4. setDetails("");
  5. CLASS_NAME + ".fatal_button_text", closeButton.getLocale()));
  6. } else {
  7. closeButton.setText(UIManagerExt.getString(
  8. CLASS_NAME + ".ok_button_text", closeButton.getLocale()));

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

  1. setErrorMessage("");
  2. closeButton.setText(UIManagerExt.getString(
  3. CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
  4. setDetails("");
  5. CLASS_NAME + ".fatal_button_text", closeButton.getLocale()));
  6. } else {
  7. closeButton.setText(UIManagerExt.getString(
  8. CLASS_NAME + ".ok_button_text", closeButton.getLocale()));

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

  1. setErrorMessage("");
  2. closeButton.setText(UIManagerExt.getString(
  3. CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
  4. setDetails("");
  5. CLASS_NAME + ".fatal_button_text", closeButton.getLocale()));
  6. } else {
  7. closeButton.setText(UIManagerExt.getString(
  8. CLASS_NAME + ".ok_button_text", closeButton.getLocale()));

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

  1. setErrorMessage("");
  2. closeButton.setText(UIManagerExt.getString(
  3. CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
  4. setDetails("");
  5. CLASS_NAME + ".fatal_button_text", closeButton.getLocale()));
  6. } else {
  7. closeButton.setText(UIManagerExt.getString(
  8. CLASS_NAME + ".ok_button_text", closeButton.getLocale()));

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

  1. setErrorMessage("");
  2. closeButton.setText(UIManagerExt.getString(
  3. CLASS_NAME + ".ok_button_text", closeButton.getLocale()));
  4. setDetails("");
  5. CLASS_NAME + ".fatal_button_text", closeButton.getLocale()));
  6. } else {
  7. closeButton.setText(UIManagerExt.getString(
  8. CLASS_NAME + ".ok_button_text", closeButton.getLocale()));

相关文章

JButton类方法