资源描述:
《学生系统5_管理学_高等教育_教育专区》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、packagecom.cqeec.ssm.teacher;importjava.awt.Color;importjava.awt.GridBagConstraints;importjava.awt.GridBagLayout;importjava.awt.Insets;importjava.awt.event.ActionEvent;importjava.awt.event.ActionListener;importjavax.swing.ButtonGroup;importjavax.swing.JButton;importjava
2、x.swing.JComboBox;importjavax.swing.JDialog;importjavax.swing.JLabel;importjavax.swing.JOptionPane;importjavax.swing.JPanel;importjavax.swing.JRadioButton;importjavax.swing.JTextField;publicclassfindalltacharconditonframeextendsJDialogimplementsActionListener{privatesta
3、ticfinallongserialVersionUID=1L;privateJComboBoxcbField;privateJRadioButtonrbEq;privateJRadioButtonrbLike;privateJTextFieldtfFindValue;privateJButtonbtnFind;privateJButtonbtnCancel;privateTeacharListFrameframe;publicfindalltacharconditonframe(TeacharListFrameframe){this
4、.frame=frame;this.init();}privatevoidinit(){this.setTitle("查找教师条件");this.setModal(true);this.setSize(250,200);this.setBackground(newColor(145,45,225));this.setLayout(newGridBagLayout());this.setResizable(false);GridBagConstraintsgbc;gbc=newGridBagConstraints();gbc.gridx
5、=0;gbc.gridy=0;gbc.anchor=GridBagConstraints.EAST;gbc.insets=newInsets(0,20,0,0);JLabellblField=newJLabel("字段:");this.add(lblField,gbc);gbc=newGridBagConstraints();gbc.gridx=1;gbc.gridy=0;gbc.fill=GridBagConstraints.BOTH;gbc.insets=newInsets(0,0,0,20);gbc.weightx=1;Stri
6、ng[]fields={"教工号","姓名","性别","办公号码","居住地址","出生日期","工资","密码","职位","状态","院系","照片","备注"};cbField=newJComboBox(fields);cbField.setSelectedIndex(-1);this.add(cbField,gbc);gbc=newGridBagConstraints();gbc.gridx=0;gbc.gridy=1;gbc.anchor=GridBagConstraints.EAST;gbc.insets=newInse
7、ts(0,20,0,0);JLabellblFT=newJLabel("查找类型:");this.add(lblFT,gbc);gbc=newGridBagConstraints();gbc.gridx=1;gbc.gridy=1;gbc.insets=newInsets(0,0,0,20);gbc.anchor=GridBagConstraints.WEST;rbEq=newJRadioButton("精确查找");rbEq.setSelected(true);this.add(rbEq,gbc);gbc=newGridBagCon
8、straints();gbc.gridx=1;gbc.gridy=2;gbc.insets=newInsets(0,0,0,20);gbc.anchor=GridBagConstraints.WEST;rbLike=ne