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

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

本文整理了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

/**
 * {@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()));

相关文章

JButton类方法