Advertisement
Ivan_Bochev

Nathan Swift

Apr 11th, 2019 (edited)
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.44 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 NathanSwift {
  11.  
  12.     private JFrame frame;
  13.  
  14.     /**
  15.      * Launch the application.
  16.      */
  17.     public void NathanSwiftt() {
  18.         EventQueue.invokeLater(new Runnable() {
  19.             public void run() {
  20.                 try {
  21.                     NathanSwift window = new NathanSwift();
  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 NathanSwift() {
  34.         initialize();
  35.     }
  36.  
  37.     /**
  38.      * Initialize the contents of the frame.
  39.      */
  40.     private void initialize() {
  41.         frame = new JFrame();
  42.         frame.setTitle("Nathan Swift");
  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("Nathan Swift");
  48.         label.setFont(new Font("Tahoma", Font.PLAIN, 20));
  49.         label.setBounds(224, 10, 121, 23);
  50.         frame.getContentPane().add(label);
  51.  
  52.         String ns = "<html><p align=justify>Nathan Swift is one of the main characters in the Inazuma Eleven game, manga, and anime. He is a defender for Raimon, then, he's a midfielder (second and third season) and later on, Inazuma Japan. He also was a forward and the captain of the Dark Emperors in season 2.</p><br><p align=justify>Nathan is shown to have a competitive character, as he likes to play against strong players. Nathan is also shown to have some confidence issues under high pressure, and is afraid of not being able to keep up with the rest of his teammates.</p></html>";
  53.         JLabel lblNewLabel = new JLabel(ns);
  54.         lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 16));
  55.         lblNewLabel.setBounds(20, 50, 203, 440);
  56.         frame.getContentPane().add(lblNewLabel);
  57.  
  58.         JLabel lblNewLabel_1 = new JLabel("");
  59.         lblNewLabel_1.setIcon(new ImageIcon("C:\\Users\\USER\\Downloads\\Inazuma11\\Nathan Swift.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.                 KevinDragonfly kd = new KevinDragonfly();
  80.                 kd.KevinDragonflyy();
  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.                 HurleyKane hk = new HurleyKane();
  93.                 hk.HurleyKanee();
  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