12345678910111213141516171819202122232425 |
- package com.rthoni.uqac.pigeon;
-
- import javax.swing.*;
-
- /**
- * Created by robin on 10/29/16.
- */
- public class Main {
-
- static void initGui()
- {
- JFrame frame = new JFrame("Threads Over Pigeons");
- frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- frame.setSize(800, 800);
- frame.setResizable(false);
- frame.setVisible(true);
- // 10 pigeons
- frame.add(new Game(10));
- }
-
- public static void main(String... argv)
- {
- SwingUtilities.invokeLater(Main::initGui);
- }
- }
|