本文整理了Java中javax.swing.JOptionPane.getOptionType()
方法的一些代码示例,展示了JOptionPane.getOptionType()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JOptionPane.getOptionType()
方法的具体详情如下:
包路径:javax.swing.JOptionPane
类名称:JOptionPane
方法名:getOptionType
暂无
代码示例来源:origin: joel-costigliola/assertj-swing
/**
* Returns the {@code String} representation of the given {@code Component}, which should be a {@code JOptionPane}.
*
* @param c the given {@code Component}.
* @return the {@code String} representation of the given {@code JOptionPane}.
*/
@RunsInCurrentThread
@Override
@Nonnull protected String doFormat(@Nonnull Component c) {
JOptionPane optionPane = (JOptionPane) c;
String format = "%s[message=%s, messageType=%s, optionType=%s, enabled=%b, visible=%b, showing=%b]";
return String.format(format, getRealClassName(c), quote(optionPane.getMessage()),
MESSAGE_TYPES.get(optionPane.getMessageType()), OPTION_TYPES.get(optionPane.getOptionType()),
optionPane.isEnabled(), optionPane.isVisible(), optionPane.isShowing());
}
代码示例来源:origin: com.jidesoft/jide-oss
int type = optionPane.getOptionType();
Locale l = optionPane.getLocale();
if (type == JOptionPane.YES_NO_OPTION) {
内容来源于网络,如有侵权,请联系作者删除!