dialog box import java code example
Example: dialog box in java swing
import javax.swing.JOptionPane;
public class Main {
public static void main(String[] argv) throws Exception {
JOptionPane.showMessageDialog(null, "I am happy.");
}
}
import javax.swing.JOptionPane;
public class Main {
public static void main(String[] argv) throws Exception {
JOptionPane.showMessageDialog(null, "I am happy.");
}
}