javax.swing.JOptionPane.showInternalInputDialog()方法的使用及代码示例

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

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

JOptionPane.showInternalInputDialog介绍

暂无

代码示例

代码示例来源:origin: EvoSuite/evosuite

public boolean askInput6() {
  String message = JOptionPane.showInternalInputDialog(null, "messag0", "title0",
      javax.swing.JOptionPane.ERROR_MESSAGE);
  if (message == null) {
    return false;
  } else {
    return true;
  }
}

代码示例来源:origin: org.fuin/utils4swing

public void show(final StringResult result) {
    result.setResult(JOptionPane.showInternalInputDialog(parentComponent, message,
        title, messageType));
  }
});

代码示例来源:origin: org.fuin/utils4swing

public void show(final ObjectResult result) {
    result.setResult(JOptionPane.showInternalInputDialog(parentComponent, message,
        title, messageType, icon, selectionValues, initialSelectionValue));
  }
});

代码示例来源:origin: EvoSuite/evosuite

public boolean askInput5() {
  String message = JOptionPane.showInternalInputDialog(null, "message0");
  if (message == null) {
    return false;
  } else {
    return true;
  }
}

代码示例来源:origin: org.fuin/utils4swing

public void show(final StringResult result) {
    result
        .setResult(JOptionPane.showInternalInputDialog(parentComponent,
            message));
  }
});

代码示例来源:origin: EvoSuite/evosuite

public int showInternalInputDialogs() {
    int count = 0;

    final String string0 = JOptionPane.showInternalInputDialog(null, "message0");
    if (string0 == null) {
      count++;
    }

    String string2 = JOptionPane.showInternalInputDialog(null, "message0", "title0", JOptionPane.ERROR_MESSAGE);
    if (string2 == null) {
      count++;
    }

    Object object0 = JOptionPane.showInternalInputDialog(null, "message0", "title0", JOptionPane.ERROR_MESSAGE,
        null, new Object[] { "val0", "val1" }, "val0");
    if (object0 == null) {
      count++;
    }

    return count;

  }
}

代码示例来源:origin: net.sourceforge.ondex.apps/ovtk2

AttributeName an = (AttributeName) JOptionPane.showInternalInputDialog(dialog, Config.language.getProperty("Dialog.Attribute.AttributeName.SelectText"), Config.language.getProperty("Dialog.Attribute.AttributeName.SelectTitle"), JOptionPane.PLAIN_MESSAGE, dialog.getFrameIcon(), ans, null);

代码示例来源:origin: stackoverflow.com

@Override
public void actionPerformed(ActionEvent e) {
  JOptionPane.showInternalInputDialog(inf, "Hit me");

代码示例来源:origin: net.sourceforge.ondex.apps/ovtk2

o = editor.getDefaultValue();
} else { // ask for XStream xml code
  String xml = (String) JOptionPane.showInternalInputDialog(this, Config.language.getProperty("Dialog.Attribute.XStreamText"), Config.language.getProperty("Dialog.Attribute.XStreamTitle"), JOptionPane.PLAIN_MESSAGE, this.getFrameIcon(), null, null);
  if ((xml != null) && (xml.length() > 0)) {
    try {
  o = editor.getDefaultValue();
} else { // ask for XStream xml code
  String xml = (String) JOptionPane.showInternalInputDialog(this, Config.language.getProperty("Dialog.Attribute.XStreamText"), Config.language.getProperty("Dialog.Attribute.XStreamTitle"), JOptionPane.PLAIN_MESSAGE, this.getFrameIcon(), null, null);
  if ((xml != null) && (xml.length() > 0)) {
    o = Marshaller.getMarshaller().fromXML(xml);

相关文章