www.pudn.com > scanmine2.0.rar > Test.java
package cn.edu.hdc.test;
import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
import cn.edu.hdc.controller.Controller;
import cn.edu.hdc.ground.Ground;
@SuppressWarnings("serial")
public class Test extends JFrame{
private Ground ground = new Ground();
Controller controller = new Controller(ground);
public JPanel jGroundp = new JPanel();
BorderLayout bor = new BorderLayout();
@SuppressWarnings("static-access")
public Test(){
this.setSize((int)ground.getSize().getWidth()+6,(int)ground.getSize().getHeight()+50);
this.setMenuBar(ground.menuBar);
jGroundp.add(ground);
jGroundp.setLayout(null);
jGroundp.setBounds(0, 0, (int)ground.getSize().getWidth(), (int)ground.getSize().getHeight());
this.setLayout(null);
this.add(jGroundp);
this.setResizable(false);
}
public static void main(String[] args) throws InterruptedException {
@SuppressWarnings("unused")
Test test = new Test();
test.setVisible(true);
//test.controller.setJFrame(test);
}
public Ground getGround() {
return ground;
}
public void setGround(Ground ground) {
this.ground = ground;
}
}