Advertisement
Ivan_Bochev

Byron Love

Apr 11th, 2019 (edited)
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.38 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 ByronLove {
  11.  
  12.     private JFrame frame;
  13.  
  14.     /**
  15.      * Launch the application.
  16.      */
  17.     public void ByronLovee() {
  18.         EventQueue.invokeLater(new Runnable() {
  19.             public void run() {
  20.                 try {
  21.                     ByronLove window = new ByronLove();
  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 ByronLove() {
  34.         initialize();
  35.     }
  36.  
  37.     /**
  38.      * Initialize the contents of the frame.
  39.      */
  40.     private void initialize() {
  41.         frame = new JFrame();
  42.         frame.setTitle("Byron Love");
  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("Byron Love");
  48.         label.setFont(new Font("Tahoma", Font.PLAIN, 20));
  49.         label.setBounds(232, 10, 105, 23);
  50.         frame.getContentPane().add(label);
  51.  
  52.         String bl = "<html><p align=justify>Byron Love is the former captain of the Zeus, temporary player of the Raimon and attacker of the Fire Dragon because Korean. When in Zeus, Byron is a rather arrogant, convinced that his team has no equal. He is also under the influence of Dark, and will use the nectar of the gods to increase his power.</p><br><p align=justify>He will return in the second season, allying himself temporarily with the Raimon. There you will find that in reality he is a good person, who greatly values Raimon players.</p></html>";
  53.         JLabel lblNewLabel = new JLabel(bl);
  54.         lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 16));
  55.         lblNewLabel.setBounds(20, 36, 203, 450);
  56.         frame.getContentPane().add(lblNewLabel);
  57.  
  58.         JLabel lblNewLabel_1 = new JLabel("");
  59.         lblNewLabel_1.setIcon(new ImageIcon("C:\\Users\\USER\\Downloads\\Inazuma11\\Byron Love.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.                 JudeSharp js = new JudeSharp();
  80.                 js.JudeSharpp();
  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.                 ShawnFroste sf = new ShawnFroste();
  93.                 sf.ShawnFrostee();
  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