Advertisement
Ivan_Bochev

Kevin Dragonfly

Apr 11th, 2019 (edited)
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.39 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 KevinDragonfly {
  11.  
  12.     private JFrame frame;
  13.  
  14.     /**
  15.      * Launch the application.
  16.      */
  17.     public void KevinDragonflyy() {
  18.         EventQueue.invokeLater(new Runnable() {
  19.             public void run() {
  20.                 try {
  21.                     KevinDragonfly window = new KevinDragonfly();
  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 KevinDragonfly() {
  34.         initialize();
  35.     }
  36.  
  37.     /**
  38.      * Initialize the contents of the frame.
  39.      */
  40.     private void initialize() {
  41.         frame = new JFrame();
  42.         frame.setTitle("Kevin Dragonfly");
  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("Kevin Dragonfly");
  48.         label.setFont(new Font("Tahoma", Font.PLAIN, 20));
  49.         label.setBounds(211, 10, 147, 23);
  50.         frame.getContentPane().add(label);
  51.  
  52.         String kd = "<html><p align=justify>Kevin Dragonfly is the second striker of Raimon Soccer Club. He is one the earliest member to join the club. He is a bit aggressive but is actually a nice guy. He never wants to lose to Axel or Shawn and didn't give up the ace striker seat.</p><br><p align=justify>But he is really a odd friend of both Axel and Shawn. He can easily get angry like when one of Zeus Jr High players mocks his teammates or when Axel left the team and was replaced by Shawn Frost.</p></html>";
  53.         JLabel lblNewLabel = new JLabel(kd);
  54.         lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 16));
  55.         lblNewLabel.setBounds(20, 40, 203, 380);
  56.         frame.getContentPane().add(lblNewLabel);
  57.  
  58.         JLabel lblNewLabel_1 = new JLabel("");
  59.         lblNewLabel_1.setIcon(new ImageIcon("C:\\Users\\USER\\Downloads\\Inazuma11\\Kevin Dragonfly.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 arg0) {
  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.                 XavierFoster xf = new XavierFoster();
  80.                 xf.XavierFosterr();
  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.                 NathanSwift ns = new NathanSwift();
  93.                 ns.NathanSwiftt();
  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.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement