Advertisement
Ivan_Bochev

Xavier Foster

Apr 11th, 2019 (edited)
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.43 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 XavierFoster {
  11.  
  12.     private JFrame frame;
  13.  
  14.     /**
  15.      * Launch the application.
  16.      */
  17.     public void XavierFosterr() {
  18.         EventQueue.invokeLater(new Runnable() {
  19.             public void run() {
  20.                 try {
  21.                     XavierFoster window = new XavierFoster();
  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 XavierFoster() {
  34.         initialize();
  35.     }
  36.  
  37.     /**
  38.      * Initialize the contents of the frame.
  39.      */
  40.     private void initialize() {
  41.         frame = new JFrame();
  42.         frame.setTitle("Xavier Foster");
  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("Xavier Foster");
  48.         label.setFont(new Font("Tahoma", Font.PLAIN, 20));
  49.         label.setBounds(224, 10, 121, 23);
  50.         frame.getContentPane().add(label);
  51.  
  52.         String xf = "<html><p align=justify>Xavier Foster is the former Genesis captain by the name of Xene. He appears in the second series and is a very mysterious type, who secretly spies on the Raimon games. He is the adopted son of Astram Shiller and adoptive brother of Aquilina Schiller.</p><br><p align=justify>The first few times he appears as a very shy and mysterious type, this is due to the fact that he observes Raimon's games secretly, but when he enters the field his character radically changes, he becomes very self-confident and arrogant.</p></html>";
  53.         JLabel lblNewLabel = new JLabel(xf);
  54.         lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 16));
  55.         lblNewLabel.setBounds(20, 15, 203, 470);
  56.         frame.getContentPane().add(lblNewLabel);
  57.  
  58.         JLabel lblNewLabel_1 = new JLabel("");
  59.         lblNewLabel_1.setIcon(new ImageIcon("C:\\Users\\USER\\Downloads\\Inazuma11\\Xavier Foster.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.                 ShawnFroste sf = new ShawnFroste();
  80.                 sf.ShawnFrostee();
  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.                 KevinDragonfly kd = new KevinDragonfly();
  93.                 kd.KevinDragonflyy();
  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