Advertisement
EXPGamer303

Java - Scammer Bingo 1

Dec 6th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 8.13 KB | None | 0 0
  1. //Download: http://bit.ly/ScammerBingo1
  2.  
  3. package scammerBingo;
  4.  
  5. import java.awt.EventQueue;
  6. import java.awt.Font;
  7. import java.awt.event.ActionEvent;
  8. import java.awt.event.ActionListener;
  9.  
  10. import javax.swing.JButton;
  11. import javax.swing.JFrame;
  12. import javax.swing.JLabel;
  13. import javax.swing.JPanel;
  14. import javax.swing.JTextField;
  15. import javax.swing.border.EmptyBorder;
  16. import java.awt.Color;
  17. import javax.swing.UIManager;
  18. import java.awt.SystemColor;
  19.  
  20.  
  21. public class ScammerBingo1 extends JFrame {
  22.  
  23.     private JPanel contentPane;
  24.  
  25.     public static void main(String[] args) {
  26.         EventQueue.invokeLater(new Runnable() {
  27.             public void run() {
  28.                 try {
  29.                     ScammerBingo1 frame = new ScammerBingo1();
  30.                     frame.setVisible(true);
  31.                 } catch (Exception e) {
  32.                     e.printStackTrace();
  33.                 }
  34.             }
  35.         });
  36.     }
  37.    
  38.     public static int score = 0;
  39.     private JTextField textField;
  40.    
  41.     public ScammerBingo1() {
  42.         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  43.         setBounds(100, 100, 540, 369);
  44.         contentPane = new JPanel();
  45.         contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
  46.         setContentPane(contentPane);
  47.         contentPane.setLayout(null);
  48.        
  49.         JLabel lblScammerBingo = new JLabel("Scammer Bingo");
  50.         lblScammerBingo.setFont(new Font("Tahoma", Font.PLAIN, 34));
  51.         lblScammerBingo.setBounds(135, -13, 361, 83);
  52.         contentPane.add(lblScammerBingo);
  53.        
  54.         JButton btnFakeEnglishName = new JButton("Fake English Name");
  55.         btnFakeEnglishName.addActionListener(new ActionListener() {
  56.             public void actionPerformed(ActionEvent arg0) {
  57.                
  58.                 textField.setText("Score " + ++score + "/16");
  59.                 btnFakeEnglishName.setEnabled(false);
  60.                
  61.             }
  62.         });
  63.         btnFakeEnglishName.setBounds(12, 57, 141, 51);
  64.         contentPane.add(btnFakeEnglishName);
  65.        
  66.         JButton btnCmdexe = new JButton("cmd.exe");
  67.         btnCmdexe.addActionListener(new ActionListener() {
  68.             public void actionPerformed(ActionEvent arg0) {
  69.                
  70.                 textField.setText("Score " + ++score + "/16");
  71.                 btnCmdexe.setEnabled(false);
  72.                
  73.             }
  74.         });
  75.         btnCmdexe.setBounds(310, 57, 105, 51);
  76.         contentPane.add(btnCmdexe);
  77.        
  78.         JButton btnSupportme = new JButton("support.me");
  79.         btnSupportme.addActionListener(new ActionListener() {
  80.             public void actionPerformed(ActionEvent arg0) {
  81.                
  82.                 textField.setText("Score " + ++score + "/16");
  83.                 btnSupportme.setEnabled(false);
  84.                
  85.             }
  86.         });
  87.         btnSupportme.setBounds(165, 110, 133, 51);
  88.         contentPane.add(btnSupportme);
  89.        
  90.         JButton btnWindowsKey = new JButton("Vindows Key + R");
  91.         btnWindowsKey.addActionListener(new ActionListener() {
  92.             public void actionPerformed(ActionEvent arg0) {
  93.                
  94.                 textField.setText("Score " + ++score + "/16");
  95.                 btnWindowsKey.setEnabled(false);
  96.                
  97.             }
  98.         });
  99.         btnWindowsKey.setBounds(12, 110, 141, 51);
  100.         contentPane.add(btnWindowsKey);
  101.        
  102.         JButton btnOneTimeCharge = new JButton("One Time Charge");
  103.         btnOneTimeCharge.addActionListener(new ActionListener() {
  104.             public void actionPerformed(ActionEvent arg0) {
  105.                
  106.                 textField.setText("Score " + ++score + "/16");
  107.                 btnOneTimeCharge.setEnabled(false);
  108.                
  109.             }
  110.         });
  111.         btnOneTimeCharge.setBounds(165, 57, 133, 51);
  112.         contentPane.add(btnOneTimeCharge);
  113.        
  114.         JButton btnSir = new JButton("Sir");
  115.         btnSir.addActionListener(new ActionListener() {
  116.             public void actionPerformed(ActionEvent arg0) {
  117.                
  118.                 textField.setText("Score " + ++score + "/16");
  119.                 btnSir.setEnabled(false);
  120.                
  121.             }
  122.         });
  123.         btnSir.setBounds(427, 57, 83, 51);
  124.         contentPane.add(btnSir);
  125.        
  126.         JButton btnDextopLaxtop = new JButton("Dextop");
  127.         btnDextopLaxtop.addActionListener(new ActionListener() {
  128.             public void actionPerformed(ActionEvent arg0) {
  129.                
  130.                 textField.setText("Score " + ++score + "/16");
  131.                 btnDextopLaxtop.setEnabled(false);
  132.                
  133.             }
  134.         });
  135.         btnDextopLaxtop.setBounds(12, 163, 141, 61);
  136.         contentPane.add(btnDextopLaxtop);
  137.        
  138.         JButton btnEventvrw = new JButton("eventvrw");
  139.         btnEventvrw.addActionListener(new ActionListener() {
  140.             public void actionPerformed(ActionEvent arg0) {
  141.                
  142.                 textField.setText("Score " + ++score + "/16");
  143.                 btnEventvrw.setEnabled(false);
  144.                
  145.             }
  146.         });
  147.         btnEventvrw.setBounds(310, 110, 105, 51);
  148.         contentPane.add(btnEventvrw);
  149.        
  150.         JButton btnTree = new JButton("tree");
  151.         btnTree.addActionListener(new ActionListener() {
  152.             public void actionPerformed(ActionEvent arg0) {
  153.                
  154.                 textField.setText("Score " + ++score + "/16");
  155.                 btnTree.setEnabled(false);
  156.                
  157.             }
  158.         });
  159.         btnTree.setBounds(427, 110, 83, 51);
  160.         contentPane.add(btnTree);
  161.        
  162.         JButton btnDoOneThing = new JButton("Do One Thing");
  163.         btnDoOneThing.addActionListener(new ActionListener() {
  164.             public void actionPerformed(ActionEvent arg0) {
  165.                
  166.                 textField.setText("Score " + ++score + "/16");
  167.                 btnDoOneThing.setEnabled(false);
  168.                
  169.             }
  170.         });
  171.         btnDoOneThing.setBounds(165, 163, 133, 61);
  172.         contentPane.add(btnDoOneThing);
  173.        
  174.         JButton btnWirus = new JButton("Wirus");
  175.         btnWirus.addActionListener(new ActionListener() {
  176.             public void actionPerformed(ActionEvent arg0) {
  177.                
  178.                 textField.setText("Score " + ++score + "/16");
  179.                 btnWirus.setEnabled(false);
  180.                
  181.             }
  182.         });
  183.         btnWirus.setBounds(310, 163, 105, 61);
  184.         contentPane.add(btnWirus);
  185.        
  186.         JButton btnNetstat = new JButton("netstat");
  187.         btnNetstat.addActionListener(new ActionListener() {
  188.             public void actionPerformed(ActionEvent arg0) {
  189.                
  190.                 textField.setText("Score " + ++score + "/16");
  191.                 btnNetstat.setEnabled(false);
  192.                
  193.             }
  194.         });
  195.         btnNetstat.setBounds(427, 163, 83, 61);
  196.         contentPane.add(btnNetstat);
  197.        
  198.         JButton btnDirs = new JButton("dir /s");
  199.         btnDirs.addActionListener(new ActionListener() {
  200.             public void actionPerformed(ActionEvent arg0) {
  201.                
  202.                 textField.setText("Score " + ++score + "/16");
  203.                 btnDirs.setEnabled(false);
  204.                
  205.             }
  206.         });
  207.         btnDirs.setBounds(175, 226, 105, 35);
  208.         contentPane.add(btnDirs);
  209.        
  210.         JButton btnUsesNotepad = new JButton("Uses Notepad");
  211.         btnUsesNotepad.addActionListener(new ActionListener() {
  212.             public void actionPerformed(ActionEvent arg0) {
  213.                
  214.                 textField.setText("Score " + ++score + "/16");
  215.                 btnUsesNotepad.setEnabled(false);
  216.                
  217.             }
  218.         });
  219.         btnUsesNotepad.setBounds(289, 225, 126, 37);
  220.         contentPane.add(btnUsesNotepad);
  221.        
  222.         JButton btnUhhh = new JButton("Uhhh");
  223.         btnUhhh.addActionListener(new ActionListener() {
  224.             public void actionPerformed(ActionEvent arg0) {
  225.                
  226.                 textField.setText("Score " + ++score + "/16");
  227.                 btnUhhh.setEnabled(false);
  228.                
  229.             }
  230.         });
  231.         btnUhhh.setBounds(427, 226, 83, 35);
  232.         contentPane.add(btnUhhh);
  233.        
  234.         JButton btnEachAndEverything = new JButton("Each and Everything");
  235.         btnEachAndEverything.addActionListener(new ActionListener() {
  236.             public void actionPerformed(ActionEvent arg0) {
  237.                
  238.                 textField.setText("Score " + ++score + "/16");
  239.                 btnEachAndEverything.setEnabled(false);
  240.                
  241.             }
  242.         });
  243.         btnEachAndEverything.setBounds(12, 225, 159, 37);
  244.         contentPane.add(btnEachAndEverything);
  245.        
  246.         textField = new JTextField();
  247.         score--;
  248.         textField.setEditable(false);
  249.         textField.setBackground(SystemColor.menu);
  250.         textField.setFont(new Font("Tahoma", Font.PLAIN, 25));
  251.         textField.setText("Score " + ++score + "/16");
  252.         textField.setBounds(375, 287, 147, 40);
  253.         contentPane.add(textField);
  254.         textField.setColumns(10);
  255.        
  256.         JButton btnReset = new JButton("Reset");
  257.         btnReset.addActionListener(new ActionListener() {
  258.             public void actionPerformed(ActionEvent arg0) {
  259.                
  260.                 score = -1;
  261.                 textField.setText("Score " + ++score + "/16");
  262.                
  263.                 btnFakeEnglishName.setEnabled(true);
  264.                 btnCmdexe.setEnabled(true);
  265.                 btnSupportme.setEnabled(true);
  266.                 btnWindowsKey.setEnabled(true);
  267.                 btnOneTimeCharge.setEnabled(true);
  268.                 btnSir.setEnabled(true);
  269.                 btnDextopLaxtop.setEnabled(true);
  270.                 btnEventvrw.setEnabled(true);
  271.                 btnTree.setEnabled(true);
  272.                 btnDoOneThing.setEnabled(true);
  273.                 btnWirus.setEnabled(true);
  274.                 btnNetstat.setEnabled(true);
  275.                 btnDirs.setEnabled(true);
  276.                 btnUsesNotepad.setEnabled(true);
  277.                 btnEachAndEverything.setEnabled(true);
  278.                 btnUhhh.setEnabled(true);
  279.  
  280.                
  281.             }
  282.         });
  283.         btnReset.setBounds(0, 299, 97, 25);
  284.         contentPane.add(btnReset);
  285.        
  286.        
  287.     }
  288. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement