Last active
January 28, 2017 05:32
-
-
Save nektro/40566cc10b5f63a677aa1684f03b9232 to your computer and use it in GitHub Desktop.
Coolio Albainian Virus meme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.swing.JOptionPane; | |
import javax.swing.UIManager; | |
import javax.swing.UnsupportedLookAndFeelException; | |
public class CoolioVirus | |
{ | |
public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException | |
{ | |
String title = "Virus Alert !"; | |
String message = "Hi, I am an Albanian virus but because of poor technology in my\n" + | |
"country unfortunately I am not able to harm your computer. Please be\n" + | |
"so kind to delete one of your important files yourself and then forward\n" + | |
"me to other users. Many thanks for your cooperation! Best\n" + | |
"regards, Albanian virus"; | |
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); | |
JOptionPane.showConfirmDialog(null, message, title, 0, JOptionPane.ERROR_MESSAGE); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment