import java.awt.Container;import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;public class UpdateFile extends JFrame{
private static final long serialVersionUID = 1L;
private JPanel jp;
private JButton start,stop;
public UpdateFile(){
super();
init();
this.setVisible(true);
}
public void init(){
this.setSize(700,500);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setLocationRelativeTo(this);
Container c = this.getContentPane();
c.setLayout(null);
jp = new JPanel();
jp.setBounds(200,10,100,200);
c.add(jp);
start = new JButton("开始");
// start.setSize(100,70);
jp.add(start);
stop = new JButton("退出");
jp.add(stop);
}
}
import javax.swing.JFrame;
import javax.swing.JPanel;public class UpdateFile extends JFrame{
private static final long serialVersionUID = 1L;
private JPanel jp;
private JButton start,stop;
public UpdateFile(){
super();
init();
this.setVisible(true);
}
public void init(){
this.setSize(700,500);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setLocationRelativeTo(this);
Container c = this.getContentPane();
c.setLayout(null);
jp = new JPanel();
jp.setBounds(200,10,100,200);
c.add(jp);
start = new JButton("开始");
// start.setSize(100,70);
jp.add(start);
stop = new JButton("退出");
jp.add(stop);
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货