Advertisement
Ivan_Bochev

Axel Blaze

Apr 11th, 2019 (edited)
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.46 KB | None | 0 0
  1. package inazuma;
  2.  
  3. import java.awt.EventQueue;
  4.  
  5. import javax.swing.*;
  6. import java.awt.Font;
  7. import java.awt.event.ActionListener;
  8. import java.awt.event.ActionEvent;
  9.  
  10. public class AxelBlaze {
  11.  
  12.     private JFrame frame;
  13.  
  14.     /**
  15.      * Launch the application.
  16.      */
  17.     public void AxelBlazee() {
  18.         EventQueue.invokeLater(new Runnable() {
  19.             public void run() {
  20.                 try {
  21.                     AxelBlaze window = new AxelBlaze();
  22.                     window.frame.setVisible(true);
  23.                 } catch (Exception e) {
  24.                     e.printStackTrace();
  25.                 }
  26.             }
  27.         });
  28.     }
  29.  
  30.     /**
  31.      * Create the application.
  32.      */
  33.     public AxelBlaze() {
  34.         initialize();
  35.     }
  36.  
  37.     /**
  38.      * Initialize the contents of the frame.
  39.      */
  40.     private void initialize() {
  41.         frame = new JFrame();
  42.         frame.setTitle("Axel Blaze");
  43.         frame.setBounds(70, 10, 582, 653);
  44.         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  45.         frame.getContentPane().setLayout(null);
  46.  
  47.         JLabel label = new JLabel("Axel Blaze");
  48.         label.setFont(new Font("Tahoma", Font.PLAIN, 20));
  49.         label.setBounds(237, 10, 95, 23);
  50.         frame.getContentPane().add(label);
  51.  
  52.         String ab = "<html><p align=justify>Axel Blaze is the ace striker in the Raimon Eleven team. He is known as Flame Striker for his famous killer move, Fire Tornado. He is considered to be the best striker in the world. He is a one man army and completely plays for his team.</p><p align=justify>The main protagonist - Mark Evans sees him as his best friend and admires him. He is the ace striker and voice of the team. His sister Julia is in coma, because of Ray Dark's interference to stop him playing against the Royal Academy. He keeps an amulet given by his sister, and makes a promise with her to stop playing football.</p></html>";
  53.         JLabel lblNewLabel = new JLabel(ab);
  54.         lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 16));
  55.         lblNewLabel.setBounds(20, 46, 203, 463);
  56.         frame.getContentPane().add(lblNewLabel);
  57.  
  58.         JLabel lblNewLabel_1 = new JLabel("");
  59.         lblNewLabel_1.setIcon(new ImageIcon("C:\\Users\\USER\\Downloads\\Inazuma11\\Axel Blaze.png"));
  60.         lblNewLabel_1.setBounds(263, 50, 285, 474);
  61.         frame.getContentPane().add(lblNewLabel_1);
  62.  
  63.         JButton btnNewButton = new JButton("Back");
  64.         btnNewButton.addActionListener(new ActionListener() {
  65.             public void actionPerformed(ActionEvent e) {
  66.                 Inazuma11 window = new Inazuma11();
  67.                 window.frame.setVisible(true);
  68.                 frame.setVisible(false);
  69.             }
  70.         });
  71.         btnNewButton.setFocusPainted(false);
  72.         btnNewButton.setFont(new Font("Tahoma", Font.PLAIN, 14));
  73.         btnNewButton.setBounds(20, 570, 89, 23);
  74.         frame.getContentPane().add(btnNewButton);
  75.  
  76.         JButton btnNewButton_1 = new JButton("Previous");
  77.         btnNewButton_1.addActionListener(new ActionListener() {
  78.             public void actionPerformed(ActionEvent e) {
  79.                 MarkEvans me = new MarkEvans();
  80.                 me.MarkEvanss();
  81.                 frame.setVisible(false);
  82.             }
  83.         });
  84.         btnNewButton_1.setFocusPainted(false);
  85.         btnNewButton_1.setFont(new Font("Tahoma", Font.PLAIN, 14));
  86.         btnNewButton_1.setBounds(263, 570, 89, 23);
  87.         frame.getContentPane().add(btnNewButton_1);
  88.  
  89.         JButton btnNewButton_2 = new JButton("Next");
  90.         btnNewButton_2.addActionListener(new ActionListener() {
  91.             public void actionPerformed(ActionEvent e) {
  92.                 JudeSharp js = new JudeSharp();
  93.                 js.JudeSharpp();
  94.                 frame.setVisible(false);
  95.             }
  96.         });
  97.         btnNewButton_2.setFocusPainted(false);
  98.         btnNewButton_2.setFont(new Font("Tahoma", Font.PLAIN, 14));
  99.         btnNewButton_2.setBounds(459, 570, 89, 23);
  100.         frame.getContentPane().add(btnNewButton_2);
  101.     }
  102.  
  103. }
  104.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement