Package com.grt192.core

Source Code of com.grt192.core.RobotUI

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package com.grt192.core;

import com.grt192.ui.MapComponent;
import java.awt.BorderLayout;
import javax.swing.JFrame;

import test.ModelSimulator;

/**
*
* @author nikhil & cody
*/
public class RobotUI {

  RobotModel rb;
  MapComponent mp;

  JFrame mainFrame = new JFrame("CannonBot - RPGController");

  public RobotUI(RobotModel rb) {
    this.rb = rb;
    mp = new MapComponent(rb);
    mainFrame.setSize(800, 600);
    mainFrame.add(mp, BorderLayout.CENTER);
    mainFrame.setVisible(true);
    mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  }

  public static void main(String[] args) {
    ModelSimulator ms = new ModelSimulator();
    Thread t = new Thread(ms);
    t.start();
    RobotUI rui = new RobotUI(ms);
  }
}
TOP

Related Classes of com.grt192.core.RobotUI

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.