15 lines
397 B
Java
15 lines
397 B
Java
|
import javax.swing.*;
|
||
|
import java.awt.*;
|
||
|
|
||
|
|
||
|
public class Main {
|
||
|
|
||
|
public static void main(String[] args) {
|
||
|
JFrame masterFrame = new JFrame("Snake");
|
||
|
masterFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||
|
masterFrame.setLocation(100, 100);
|
||
|
masterFrame.setSize(500, 500);
|
||
|
masterFrame.add(new SnakePanel());
|
||
|
masterFrame.setVisible(true);
|
||
|
}
|
||
|
}
|