本文整理了Java中javax.swing.JOptionPane.showInternalOptionDialog()
方法的一些代码示例,展示了JOptionPane.showInternalOptionDialog()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JOptionPane.showInternalOptionDialog()
方法的具体详情如下:
包路径:javax.swing.JOptionPane
类名称:JOptionPane
方法名:showInternalOptionDialog
暂无
代码示例来源:origin: geotools/geotools
if (JOptionPane.getDesktopPaneForComponent(owner) != null) {
choice =
JOptionPane.showInternalOptionDialog(
代码示例来源:origin: EvoSuite/evosuite
public boolean showInternalOptionDialog() {
int retval = JOptionPane.showInternalOptionDialog(null, "message0", "title0", JOptionPane.YES_NO_CANCEL_OPTION,
JOptionPane.ERROR_MESSAGE, null, new Object[] { "Hello", "Goodbye" }, "Goodbye");
if (retval == 0) {
return true;
} else {
return false;
}
}
}
代码示例来源:origin: EvoSuite/evosuite
public int showInternalOptionDialog() {
int ret = JOptionPane.showInternalOptionDialog(null, "message0", "title0 ", JOptionPane.DEFAULT_OPTION,
JOptionPane.ERROR_MESSAGE, null, new Object[] { "Hello", "Goodbye","Hallo" }, "Goodbye");
if (ret == -1) {
return 0;
} else if (ret == 0) {
return 1;
} else if (ret == 1) {
return 2;
} else {
return 3;
}
}
代码示例来源:origin: org.fuin/utils4swing
public void show(final IntResult result) {
result.setResult(JOptionPane.showInternalOptionDialog(parentComponent,
message, title, optionType, messageType, icon, options, initialValue));
}
});
代码示例来源:origin: stackoverflow.com
JOptionPane.showInternalOptionDialog(dp, chooser, "Choose", JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE, null, new Object[0], null);
代码示例来源:origin: bcdev/beam
public int showInternalOptionDialog(String propertyName, Component parentComponent, Object message,
String title, int optionType,
int messageType, Icon icon,
Object[] options, Object initialValue) {
checkValidPropertyName(propertyName);
if (!isDontShowPropertySet(propertyName)) {
message = createSuppressibleMessage(message, false);
final int answer = JOptionPane.showInternalOptionDialog(parentComponent, message, title, optionType,
messageType, icon, options, initialValue);
setDontShowProperty(propertyName);
return answer;
}
return JOptionPane.YES_OPTION;
}
代码示例来源:origin: org.geotools/gt2-metadata
choice=JOptionPane.showInternalOptionDialog(
代码示例来源:origin: org.geotools/gt-metadata
choice=JOptionPane.showInternalOptionDialog(
代码示例来源:origin: net.sourceforge.ondex.apps/ovtk2
int n = JOptionPane.showInternalOptionDialog(OVTK2Desktop.getInstance().getDesktopPane(), "Do you want to load NCBI Taxonomy from web?", "Taxonomy lookup", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[2]);
代码示例来源:origin: net.sourceforge.ondex.apps/ovtk2
if (viewer != null) {
Object[] options = { Config.language.getProperty("Dialog.Add.ChoiceConcept"), Config.language.getProperty("Dialog.Add.ChoiceRelation") };
int n = JOptionPane.showInternalOptionDialog(desktop.getDesktopPane(), Config.language.getProperty("Dialog.Add.Text"), Config.language.getProperty("Dialog.Add.Title"), JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, new ImageIcon("config/toolbarButtonGraphics/general/Add24.gif"), options, options[0]);
if (n == 0) {
DialogConcept dialog = new DialogConcept(viewer, null);
内容来源于网络,如有侵权,请联系作者删除!