<file_sep>import javax.swing.*;
import java.awt.*;
import java.awt.event.*;


public class Welcome extends JFrame{
    
    public Welcome(){
        super("Pokemon Game Beta");
        Trainer t = new Trainer("sulton");
        Container c = getContentPane();
        //label for background
        JLabel bg = new JLabel();
        ImageIcon background = new ImageIcon("D://pokemon_welcome.jpg");
        bg.setIcon(background);
        bg.setBounds(0, -75, 500, 550);
        bg.setAlignmentX(Component.BOTTOM_ALIGNMENT);
        c.add(bg);

        c.setLayout(null);
        //add button
        JButton	btn1 = new JButton("PLAY");
        btn1.setBounds(200, 240, 100, 30);
        btn1.setAlignmentX(Component.BOTTOM_ALIGNMENT);
        btn1.addActionListener(new ActionListener(){
            public void actionPerformed(ActionEvent e){
                MainGame mg = new MainGame(t);
            }
        });
        c.add(btn1);
		
        JButton btn2 = new JButton("ABOUT US");
        btn2.setBounds(200, 280, 100, 30);
        btn2.setAlignmentX(Component.BOTTOM_ALIGNMENT);
        btn2.addActionListener(new ActionListener(){
            public void actionPerformed(ActionEvent e){
                JOptionPane.showMessageDialog(null, " Hi I'm <NAME> 6110110107");
            }
        });
		c.add(btn2);
		
        JButton btn3 = new JButton("QUIT");
        btn3.setBounds(200, 320, 100, 30);
        btn3.setAlignmentX(Component.BOTTOM_ALIGNMENT);
        btn3.addActionListener(new ActionListener(){
            public void actionPerformed(ActionEvent e){
                System.exit(0);
            }
        });
		c.add(btn3);
        

        //system
        setSize(500,450);
        setLocationRelativeTo(null);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setVisible(true);

    }
}<file_sep>import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

public class ImageGallary extends JFrame{
    private Trainer trainer;
    Pokemon pokemon;
    public ImageGallary(Pokemon pokemon){
        super("Image Gallary");
        this.pokemon = pokemon;
        Container c = getContentPane();
        //layout
        c.setLayout(null);

        JLabel bgall = new JLabel();
        ImageIcon backgroundall = new ImageIcon("D://all.jpg");
        bgall.setIcon(backgroundall);
        bgall.setBounds(0, -50, 400, 200);
        bgall.setAlignmentX(Component.BOTTOM_ALIGNMENT);
        c.add(bgall);
        

        JLabel bgall1 = new JLabel();
        ImageIcon backgroundall1 = new ImageIcon("D://1.jpg");
        bgall1.setIcon(backgroundall1);
        bgall1.setBounds(200, 0, 100, 100);
        bgall1.setAlignmentX(Component.BOTTOM_ALIGNMENT);
        c.add(bgall1);

        JLabel bgall2 = new JLabel();
        ImageIcon backgroundall2 = new ImageIcon("D://2.jpg");
        bgall2.setIcon(backgroundall2);
        bgall2.setBounds(200, 100, 100, 100);
        bgall2.setAlignmentX(Component.BOTTOM_ALIGNMENT);
        c.add(bgall2);

        JLabel bgall3 = new JLabel();
        ImageIcon backgroundall3 = new ImageIcon("D://3.jpg");
        bgall3.setIcon(backgroundall3);
        bgall3.setBounds(0, 100, 100, 100);
        bgall3.setAlignmentX(Component.BOTTOM_ALIGNMENT);
        c.add(bgall3);

        JLabel bgall4 = new JLabel();
        ImageIcon backgroundall4 = new ImageIcon("D://4.jpg");
        bgall4.setIcon(backgroundall4);
        bgall4.setBounds(100, 100, 100, 100);
        bgall4.setAlignmentX(Component.BOTTOM_ALIGNMENT);
        c.add(bgall4);



        setSize(350, 300);
        setVisible(true);
        setLocationRelativeTo(null);
    }


}<file_sep>import java.util.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

public class Catch extends JFrame{
    Pokemon pokemon;
    Trainer t = new Trainer("");
        public Catch(Pokemon pokemon){
        super("Catch pokemon");
        this.pokemon = pokemon;
        Container c = getContentPane();
        //layout
        JLabel bgcatch = new JLabel();
        ImageIcon backgroundcatch = new ImageIcon("D://pokeoncc.png");
        bgcatch.setIcon(backgroundcatch);
        bgcatch.setBounds(-10, 0, 400, 200);
        bgcatch.setAlignmentX(Component.BOTTOM_ALIGNMENT);
        c.add(bgcatch);
        c.setLayout(null);
        setSize(400, 300);
        setVisible(true);
        setLocationRelativeTo(null);

        t.play();
        


        }

}

<file_sep>public class Raichu extends Pikachu{ //mutate of pikachu 

    public Raichu(String name){
        super(name,500);  //can change 
    }
    public void attack(Pokemon enemy){
        System.out.println("Pokemon " + name + " attack " + enemy.getName());
        enemy.damage(100);  // can change
    }
}