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

123456789101112131415161718192021222324252627282930
  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.pack();
  17. frame.setVisible(true);
  18. Game g = new Game();
  19. frame.add(g);
  20. }
  21. public static void main(String... argv)
  22. {
  23. SwingUtilities.invokeLater(Main::initGui);
  24. }
  25. }