@PhilAnderson/

Java Pacman

Java Swing

No description

fork
loading
Files
  • Main.java
  • images
  • Board.class
  • Board.java
  • Board$TAdapter.class
  • Main.class
  • nohup.out
  • Pacman.class
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import java.awt.EventQueue;
import javax.swing.JFrame;

public class Main {
  public static void main(String[] args) {

      EventQueue.invokeLater(() -> {
            Pacman ex = new Pacman();
            ex.setVisible(true);
        });
  }
}

class Pacman extends JFrame {

    public Pacman() {
        
        initUI();
    }
    
    private void initUI() {
        
        add(new Board());
        
        setTitle("Pacman");
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setSize(380, 420);
        setLocationRelativeTo(null);
    }

    public static void main(String[] args) {

  
    }
}