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 649B

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