You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Main.java 542B

12345678910111213141516171819202122232425
  1. package com.rthoni.uqac.pigeon;
  2. import javax.swing.*;
  3. /**
  4. * Created by robin on 10/29/16.
  5. */
  6. public class Main {
  7. static void initGui()
  8. {
  9. JFrame frame = new JFrame("Threads Over Pigeons");
  10. frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  11. frame.setSize(800, 800);
  12. frame.setResizable(false);
  13. frame.setVisible(true);
  14. // 10 pigeons
  15. frame.add(new Game(10));
  16. }
  17. public static void main(String... argv)
  18. {
  19. SwingUtilities.invokeLater(Main::initGui);
  20. }
  21. }