Guest User

Untitled

a guest
May 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. package antfarm;
  2. import java.awt.Dimension;
  3. import javax.swing.JFrame;
  4.  
  5. /*
  6. * To change this template, choose Tools | Templates
  7. * and open the template in the editor.
  8. */
  9.  
  10. /**
  11. *
  12. * @author Few
  13. */
  14. public class Simulation {
  15.  
  16. /**
  17. * @param args the command line arguments
  18. */
  19. Simulation(){
  20. JFrame window = new JFrame("AntFarm");
  21. window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  22. window.setMinimumSize(new Dimension(320,240));
  23.  
  24. AntFarm antfarm = new AntFarm();
  25. window.getContentPane().add(antfarm);
  26.  
  27. window.pack();
  28. window.setVisible(true);
  29.  
  30.  
  31.  
  32. }
  33. public void run(){
  34.  
  35.  
  36. }
  37.  
  38. public static void main(String[] args) {
  39. // TODO code application logic here
  40. Simulation AntFarm = new Simulation();
  41.  
  42. }
  43.  
  44.  
  45.  
  46. }
Add Comment
Please, Sign In to add comment