该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
jlb1=new JLabel(" 输入命令:");
jlb1.setBounds(10,260,80,20);
getContentPane().add(jlb1);
jtf = new JTextField();
jtf.setBounds(81,260,150,20);
getContentPane().add(jtf);
jbtn1 = new JButton(" 保存 ");
jbtn1.setBounds(220,260,100,20);
getContentPane().add(jbtn1);
jgdj = new JButton("绝高绝距");
jgdj.setBounds(20,285,100,20);
getContentPane().add(jgdj);
jgxj = new JButton("绝高相距");
jgxj.setBounds(20,310,100,20);
getContentPane().add(jgxj);
xgdj = new JButton();
xgdj.setText("相高绝距");
xgdj.setBounds(20,335,100,20);
getContentPane().add(xgdj);
validate();//这一句话很重要
xgxj = new JButton("相高相距");
xgxj.setBounds(20,360,100,20);
getContentPane().add(xgxj);
/* JTextField jtf2= new JTextField();
jtf2.setBounds(10,390,100,20);
getContentPane().add(jtf2); */
validate();//这一句话很重要
addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e2) {
dispose();
System.exit(0);
}
});
File_Exit.addMouseListener(new MouseAdapter(){
public void mouseClicked(MouseEvent e){
dispose();
System.exit(0);
}
});
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
try{ new DM1();} catch (Exception e) {
e.printStackTrace();
}
}
}