Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.EventQueue;
- import javax.swing.JFrame;
- public class Snake extends JFrame {
- public Snake() {
- tworzUI();
- }
- private void tworzUI() {
- add(new Plansza());
- pack();
- setResizable(false);
- setTitle("Gierka");
- setLocationRelativeTo(null);
- setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- }
- public static void main(String[] args) {
- EventQueue.invokeLater(() -> {
- JFrame ex = new Snake();
- ex.setVisible(true);
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement