import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
public class MyFrame {
/**
* 文件内容:
* 请选择您的评价结果:,*****,讲解透彻生动,好评,授课差评!,授课差差评!,*****,培训组织,最好评!,培训组织,差评!,培训环境,好评!,培训环境,差评!,*****,收获很大,好评!,培训没有效果,白白浪费时间!
*/
public void go(){
JFrame win = new JFrame("帮助窗口");
Container contentPane = win.getContentPane();
//contentPane.setLayout(new GridLayout(9,2));
contentPane.setLayout(new GridLayout(12,1));
JLabel labOne = new JLabel("请选择您的评价结果:",JLabel.CENTER);
//FlowLayout f1 = new FlowLayout();
JCheckBox cb1 = new JCheckBox("*****,讲解透彻生动,好评",true);
JCheckBox cb2= new JCheckBox("授课差评!");
JCheckBox cb3= new JCheckBox("授课差差评!");
JCheckBox cb4= new JCheckBox("*****,培训组织,最好评!",true);
JCheckBox cb5= new JCheckBox("培训组织,差评!");
JCheckBox cb6= new JCheckBox("培训环境,好评!");
JCheckBox cb7= new JCheckBox("培训环境,差评!");
JCheckBox cb8= new JCheckBox("*****,收获很大,好评!",true);
JCheckBox cb9= new JCheckBox("培训没有效果,白白浪费时间!");
JButton btn = new JButton("提交");
btn.setSize(10, 20);
contentPane.add(labOne);
contentPane.add(cb1);
contentPane.add(cb2);
contentPane.add(cb3);
contentPane.add(cb4);
contentPane.add(cb5);
contentPane.add(cb6);
contentPane.add(cb7);
contentPane.add(cb8);
contentPane.add(cb9);
contentPane.add(btn);
//win.setLayout(new FlowLayout());
//f1.setAlignment(FlowLayout.LEFT);
//win.setLayout(f1);
win.setLocation(400, 200);
win.setSize(400, 400);
win.setVisible(true);
}
public static void main(String[] args) {
// TODO Auto-generated method stub
MyFrame mf = new MyFrame();
mf.go();
}
}