|
Java™ by example!
|
|
|
How do I get the result of a JOptionPane invoked with showInputDialog?
Main.java:
 import javax.swing.*;
public class Main { public static void main(String args[]) { JFrame f = new JFrame(); String result = JOptionPane.showInputDialog(f, "test"); System.out.println(result); } }
|
Further Information
Author of answer: Uwe Billen
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|