JOpionPana

This commit is contained in:
Orange_Dugongo 2016-10-11 09:30:57 +02:00
parent 04b079a359
commit c4f46020d8
4 changed files with 19 additions and 0 deletions

BIN
src/JoptionPane/Ese1.class Normal file

Binary file not shown.

View File

@ -0,0 +1,8 @@
import javax.swing.JOptionPane;
public class Ese1{
public static void main(String [] args){
JOptionPane.showMessageDialog(null, "Salve mondo");
System.exit(0);
}
}

BIN
src/JoptionPane/Ese2.class Normal file

Binary file not shown.

11
src/JoptionPane/Ese2.java Normal file
View File

@ -0,0 +1,11 @@
import javax.swing.JOptionPane;
public class Ese2{
public static void main(String [] args){
String name = JOptionPane.showInputDialog("Come ti chiami?");
System.out.print("Ciao, ");
System.out.print(name);
System.out.print("!");
System.exit(0);
}
}