Skip to content

Instantly share code, notes, and snippets.

@DavidBernalGonzalez
Last active June 26, 2019 06:50
Show Gist options
  • Save DavidBernalGonzalez/3fe22eda4dfe97c3f8ee091285f967c6 to your computer and use it in GitHub Desktop.
Save DavidBernalGonzalez/3fe22eda4dfe97c3f8ee091285f967c6 to your computer and use it in GitHub Desktop.
JOptionPane3
import javax.swing.JOptionPane;
public class Main {
public static void main(String[] args){
JOptionPane.showMessageDialog(null, "Mensaje sin icono PLAIN_MESSAGE o -1", "Javadesde0.com", -1);
JOptionPane.showMessageDialog(null, "Mensaje con ERROR_MESSAGE o 0", "Javadesde0.com", 0);
JOptionPane.showMessageDialog(null, "Mensaje con INFORMATION_MESSAGE o 1", "Javadesde0.com", 1);
JOptionPane.showMessageDialog(null, "Mensaje con WARNING_MESSAGE o 2", "Javadesde0.com", JOptionPane.WARNING_MESSAGE);
JOptionPane.showMessageDialog(null, "Mensaje con QUESTION_MESSAGE o 3", "Javadesde0.com", JOptionPane.QUESTION_MESSAGE);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment