2016-11-14 15:44:51 +00:00
|
|
|
import java.awt.event.ActionEvent;
|
|
|
|
import java.awt.event.ActionListener;
|
2016-11-14 16:33:12 +00:00
|
|
|
import javax.swing.JOptionPane;
|
|
|
|
import java.util.Random;
|
2016-11-14 15:44:51 +00:00
|
|
|
|
|
|
|
public class SiListener implements ActionListener{
|
|
|
|
public void actionPerformed(ActionEvent event){
|
2016-11-14 16:33:12 +00:00
|
|
|
Random rand = new Random();
|
|
|
|
String str[] = {"Grazie per aver venduto la sovranità popolare", "Radical chic di sto c@zzo", "Sei appena entrato in dittatura"};
|
2016-11-14 16:34:22 +00:00
|
|
|
JOptionPane.showMessageDialog(null, str[rand.nextInt(3)]);
|
|
|
|
}
|
2016-11-14 15:44:51 +00:00
|
|
|
}
|