Javax

[Solved] Javax | Java - Code Explorer | yomemimo.com
Question : javax

Answered by : chris-oigo

import javax.swing.JOptionPane; // Needed for Dialog Box
/** * This program demonstrates * showInputDialog. */
public class InputDialogDemo
{ public static void main(String[] args) { String name; // Get the user's name. name = JOptionPane.showInputDialog("What is your name? "); // Display message JOptionPane.showMessageDialog(null, "Hello " + name); }
}

Source : http://www.beginwithjava.com/java/inputoutput/dialog-boxes.html | Last Update : Wed, 29 Jun 22

Answers related to javax

Code Explorer Popular Question For Java