To load this file without formatting, visit http://whoyouknow.co.uk/ants/AntGraph/java/1/src/antgraph/gui/GraphJFrame.java. This is a spam-protection measure; sorry for the inconvenience.

· GraphJFrame.java ·

   1/*
   2 * GraphJFrame.java
   3 *
   4 * Created on 04 March 2007, 13:30
   5 *
   6 * To change this template, choose Tools | Template Manager
   7 * and open the template in the editor.
   8 */
   9
  10package antgraph.gui;
  11
  12import javax.swing.JFrame;
  13
  14/**
  15 *
  16 * @author James
  17 */
  18public class GraphJFrame extends JFrame {
  19    
  20    
  21    
  22    /** Creates a new instance of GraphJFrame */
  23    public GraphJFrame() {
  24        initialise();
  25    }
  26    
  27    private void initialise() {
  28        
  29    }
  30    
  31    public static void main(String[] args) {
  32        java.awt.EventQueue.invokeLater(new Runnable() {
  33            public void run() {
  34                JFrame f = new JFrame("Ant Simulator");
  35                final GraphCanvas m = new GraphCanvas();
  36                f.add(m);
  37                f.setSize((int)m.getSize().getWidth() + 13, (int)m.getSize().getHeight() + 35);
  38                f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  39                f.setResizable(false);
  40                f.setVisible(true);
  41            }
  42        });
  43          
  44        
  45        
  46    }       
  47    
  48}
  49

· GraphJFrame.java ends ·

Generated by CHIP: Code Highlighting in PHP, version 2.7.0.