JOptionPane.showMessageDialog
JOptionPane.showMessageDialog(null, "A basic JOptionPane message dialog");
JOptionPane.showMessageDialog
JOptionPane.showMessageDialog(null, "A basic JOptionPane message dialog");
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.");
}
}
java joptionpane
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
public class ShowMessageDialogExample1
{
public static void main(String[] args)
{
String backupDir = "/Users/al/backups";
// create a jframe
JFrame frame = new JFrame("JOptionPane showMessageDialog example");
// show a joptionpane dialog using showMessageDialog
JOptionPane.showMessageDialog(frame,
"Problem writing to backup directory: '" + backupDir + "'.");
System.exit(0);
}
}
java swing dialog box
JOptionPane.showMessageDialog(null, "java is fun");
java joptionpane
JOptionPane.showMessageDialog(frame, "A basic JOptionPane message dialog");
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us