Advertisement
Ivan_Bochev

Inazuma Eleven - Main Window

Apr 11th, 2019 (edited)
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5.79 KB | None | 0 0
  1. package inazuma;
  2.  
  3. import java.awt.EventQueue;
  4. import javax.swing.JFrame;
  5. import javax.swing.JLabel;
  6. import javax.swing.ImageIcon;
  7. import javax.swing.JButton;
  8. import java.awt.Font;
  9. import java.awt.event.ActionListener;
  10. import java.awt.event.ActionEvent;
  11.  
  12. public class Inazuma11 {
  13.  
  14.     JFrame frame;
  15.  
  16.     /**
  17.      * Launch the application.
  18.      */
  19.     public static void main(String[] args) {
  20.         EventQueue.invokeLater(new Runnable() {
  21.             public void run() {
  22.                 try {
  23.                     Inazuma11 window = new Inazuma11();
  24.                     window.frame.setVisible(true);
  25.                 } catch (Exception e) {
  26.                     e.printStackTrace();
  27.                 }
  28.             }
  29.         });
  30.     }
  31.  
  32.     /**
  33.      * Create the application.
  34.      */
  35.     public Inazuma11() {
  36.         initialize();
  37.     }
  38.  
  39.     /**
  40.      * Initialize the contents of the frame.
  41.      */
  42.     private void initialize() {
  43.         frame = new JFrame();
  44.         frame.setTitle("Inazuma Eleven");
  45.         frame.setBounds(70, 10, 582, 800);
  46.         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  47.         frame.getContentPane().setLayout(null);
  48.  
  49.         JButton btnNewButton = new JButton("Mark Evans");
  50.         btnNewButton.addActionListener(new ActionListener() {
  51.             public void actionPerformed(ActionEvent arg0) {
  52.                 MarkEvans me = new MarkEvans();
  53.                 me.MarkEvanss();
  54.                 frame.setVisible(false);
  55.             }
  56.         });
  57.         btnNewButton.setFocusPainted(false);
  58.         btnNewButton.setFont(new Font("Tahoma", Font.PLAIN, 14));
  59.         btnNewButton.setBounds(25, 100, 135, 32);
  60.         frame.getContentPane().add(btnNewButton);
  61.  
  62.         JButton btnNewButton_1 = new JButton("Axel Blaze");
  63.         btnNewButton_1.addActionListener(new ActionListener() {
  64.             public void actionPerformed(ActionEvent e) {
  65.                 AxelBlaze ab = new AxelBlaze();
  66.                 ab.AxelBlazee();
  67.                 frame.setVisible(false);
  68.             }
  69.         });
  70.         btnNewButton_1.setFocusPainted(false);
  71.         btnNewButton_1.setFont(new Font("Tahoma", Font.PLAIN, 14));
  72.         btnNewButton_1.setBounds(394, 100, 135, 32);
  73.         frame.getContentPane().add(btnNewButton_1);
  74.  
  75.         JButton btnNewButton_2 = new JButton("Jude Sharp");
  76.         btnNewButton_2.addActionListener(new ActionListener() {
  77.             public void actionPerformed(ActionEvent e) {
  78.                 JudeSharp js = new JudeSharp();
  79.                 js.JudeSharpp();
  80.                 frame.setVisible(false);
  81.             }
  82.         });
  83.         btnNewButton_2.setFocusPainted(false);
  84.         btnNewButton_2.setFont(new Font("Tahoma", Font.PLAIN, 14));
  85.         btnNewButton_2.setBounds(50, 232, 135, 32);
  86.         frame.getContentPane().add(btnNewButton_2);
  87.  
  88.         JButton btnNewButton_3 = new JButton("Byron Love");
  89.         btnNewButton_3.addActionListener(new ActionListener() {
  90.             public void actionPerformed(ActionEvent e) {
  91.                 ByronLove bl = new ByronLove();
  92.                 bl.ByronLovee();
  93.                 frame.setVisible(false);
  94.             }
  95.         });
  96.         btnNewButton_3.setFocusPainted(false);
  97.         btnNewButton_3.setFont(new Font("Tahoma", Font.PLAIN, 14));
  98.         btnNewButton_3.setBounds(354, 232, 135, 32);
  99.         frame.getContentPane().add(btnNewButton_3);
  100.  
  101.         JButton btnNewButton_4 = new JButton("Shawn Froste");
  102.         btnNewButton_4.addActionListener(new ActionListener() {
  103.             public void actionPerformed(ActionEvent e) {
  104.                 ShawnFroste sf = new ShawnFroste();
  105.                 sf.ShawnFrostee();
  106.                 frame.setVisible(false);
  107.             }
  108.         });
  109.         btnNewButton_4.setFocusPainted(false);
  110.         btnNewButton_4.setFont(new Font("Tahoma", Font.PLAIN, 14));
  111.         btnNewButton_4.setBounds(75, 364, 135, 32);
  112.         frame.getContentPane().add(btnNewButton_4);
  113.  
  114.         JButton btnNewButton_5 = new JButton("Xavier Foster");
  115.         btnNewButton_5.addActionListener(new ActionListener() {
  116.             public void actionPerformed(ActionEvent e) {
  117.                 XavierFoster xf = new XavierFoster();
  118.                 xf.XavierFosterr();
  119.                 frame.setVisible(false);
  120.             }
  121.         });
  122.         btnNewButton_5.setFocusPainted(false);
  123.         btnNewButton_5.setFont(new Font("Tahoma", Font.PLAIN, 14));
  124.         btnNewButton_5.setBounds(313, 364, 135, 32);
  125.         frame.getContentPane().add(btnNewButton_5);
  126.  
  127.         JButton btnNewButton_6 = new JButton("Kevin Dragonfly");
  128.         btnNewButton_6.addActionListener(new ActionListener() {
  129.             public void actionPerformed(ActionEvent e) {
  130.                 KevinDragonfly kd = new KevinDragonfly();
  131.                 kd.KevinDragonflyy();
  132.                 frame.setVisible(false);
  133.             }
  134.         });
  135.         btnNewButton_6.setFocusPainted(false);
  136.         btnNewButton_6.setFont(new Font("Tahoma", Font.PLAIN, 14));
  137.         btnNewButton_6.setBounds(50, 496, 135, 32);
  138.         frame.getContentPane().add(btnNewButton_6);
  139.  
  140.         JButton btnNewButton_7 = new JButton("Nathan Swift");
  141.         btnNewButton_7.addActionListener(new ActionListener() {
  142.             public void actionPerformed(ActionEvent e) {
  143.                 NathanSwift ns = new NathanSwift();
  144.                 ns.NathanSwiftt();
  145.                 frame.setVisible(false);
  146.             }
  147.         });
  148.         btnNewButton_7.setFocusPainted(false);
  149.         btnNewButton_7.setFont(new Font("Tahoma", Font.PLAIN, 14));
  150.         btnNewButton_7.setBounds(354, 496, 135, 32);
  151.         frame.getContentPane().add(btnNewButton_7);
  152.  
  153.         JButton btnNewButton_8 = new JButton("Hurley Kane");
  154.         btnNewButton_8.addActionListener(new ActionListener() {
  155.             public void actionPerformed(ActionEvent e) {
  156.                 HurleyKane hk = new HurleyKane();
  157.                 hk.HurleyKanee();
  158.                 frame.setVisible(false);
  159.             }
  160.         });
  161.         btnNewButton_8.setFocusPainted(false);
  162.         btnNewButton_8.setFont(new Font("Tahoma", Font.PLAIN, 14));
  163.         btnNewButton_8.setBounds(25, 628, 135, 32);
  164.         frame.getContentPane().add(btnNewButton_8);
  165.  
  166.         JButton btnNewButton_9 = new JButton("Austin Hobbes");
  167.         btnNewButton_9.addActionListener(new ActionListener() {
  168.             public void actionPerformed(ActionEvent e) {
  169.                 AustinHobbes ah = new AustinHobbes();
  170.                 ah.AustinHobbess();
  171.                 frame.setVisible(false);
  172.             }
  173.         });
  174.         btnNewButton_9.setFocusPainted(false);
  175.         btnNewButton_9.setFont(new Font("Tahoma", Font.PLAIN, 14));
  176.         btnNewButton_9.setBounds(394, 628, 135, 32);
  177.         frame.getContentPane().add(btnNewButton_9);
  178.  
  179.         JLabel label = new JLabel("");
  180.         label.setIcon(new ImageIcon("C:\\Users\\USER\\Downloads\\Inazuma11\\Inazuma11L.jpg"));
  181.         label.setBounds(0, 0, 569, 800);
  182.         frame.getContentPane().add(label);
  183.     }
  184. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement