package com.sjsq.window;
import java.awt.Color;
import java.awt.ComponentOrientation;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.Date;
import java.util.Iterator;
import java.util.List;
import javax.swing.DefaultComboBoxModel;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.SwingConstants;
import javax.swing.border.LineBorder;
import com.sjsq.entity.TeacherInfo;
import com.sjsq.entity.UserInfo;
import com.sjsq.factory.DAOFactory;
import java.awt.Dimension;
public class ManagerTeach extends JFrame {
private JTextField textField;
private JTextField textField_1;
private JTextField textField_3;
private JTextField textField_4;
private JTextField textField_2;
private JTextField textField_5;
private JTextField textField_6;
private JTextField textField_8;
private JTextField textField_9;
private List<TeacherInfo> list = null;
private TeacherInfo teacher = null;
private JTextArea textArea = null;
private JTextArea textArea_1 = null;
private JComboBox comboBox_1 = null;
private JTextField textField_7;
private JTextField textField_10;
private JTextField textField_11;
private UserInfo user = null;
public ManagerTeach() {
setResizable(false);
setTitle("教师信息管理");
setSize(new Dimension(664, 672));
setLocationRelativeTo(null);
JLabel label = new JLabel("添加信息");
label.setHorizontalAlignment(SwingConstants.CENTER);
label.setFont(new Font("宋体", Font.BOLD, 16));
label.setBorder(new LineBorder(new Color(0, 0, 0)));
JLabel label_1 = new JLabel("姓名");
label_1.setHorizontalAlignment(SwingConstants.CENTER);
label_1.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
textField = new JTextField();
textField.setColumns(10);
textField_1 = new JTextField();
textField_1.setColumns(10);
JLabel label_2 = new JLabel("编号");
comboBox_1 = new JComboBox();
comboBox_1.setModel(new DefaultComboBoxModel(new String[] { "男", "女" }));
comboBox_1.setToolTipText("");
JLabel label_4 = new JLabel("性别");
label_4.setHorizontalAlignment(SwingConstants.CENTER);
JLabel label_5 = new JLabel("入职日期");
textField_3 = new JTextField();
textField_3.setColumns(10);
JLabel label_7 = new JLabel("工资");
textField_4 = new JTextField();
textField_4.setColumns(10);
JButton button = new JButton("添加");
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
buttonactionPerformed(e);
}
});
JScrollPane scrollPane = new JScrollPane();
JLabel label_3 = new JLabel("修改/删除");
label_3.setHorizontalAlignment(SwingConstants.CENTER);
label_3.setBorder(new LineBorder(new Color(0, 0, 0)));
label_3.setFont(new Font("宋体", Font.BOLD, 16));
JLabel label_6 = new JLabel("编号");
textField_2 = new JTextField();
textField_2.setColumns(10);
JButton button_1 = new JButton("查询");
button_1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
button_1actionPerformed(e);
}
});
JButton button_2 = new JButton("删除");
button_2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
button_2actionPerformed(e);
}
});
JScrollPane scrollPane_1 = new JScrollPane();
JButton button_3 = new JButton("修改-》");
button_3.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
button_3actionPerformed(e);
}
});
JLabel label_8 = new JLabel("姓名");
JLabel label_9 = new JLabel("编号");
JLabel label_10 = new JLabel("性别");
JLabel label_11 = new JLabel("入职日期");
JLabel label_12 = new JLabel("工资");
JButton button_4 = new JButton("确认修改 ");
button_4.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
button_4actionPerformed(e);
}
});
textField_5 = new JTextField();
textField_5.setColumns(10);
textField_6 = new JTextField();
textField_6.setEnabled(false);
textField_6.setColumns(10);
textField_8 = new JTextField();
textField_8.setColumns(10);
textField_9 = new JTextField();
textField_9.setColumns(10);
textField_7 = new JTextField();
textField_7.setColumns(10);
JLabel label_13 = new JLabel("联系方式");
textField_10 = new JTextField();
textField_10.setColumns(10);
JLabel label_14 = new JLabel("");
JLabel label_15 = new JLabel("联系方式");
textField_11 = new JTextField();
textField_11.setColumns(10);
GroupLayout groupLayout = new GroupLayout(getContentPane());
groupLayout.setHorizontalGroup(groupLayout.createParallelGroup(Alignment.TRAILING).addGroup(groupLayout
.createSequentialGroup()
.addGroup(groupLayout.createParallelGroup(Alignment.LEADING).addGroup(groupLayout
.createSequentialGroup().addGap(21)
.addGroup(groupLayout.createParallelGroup(Alignment.LEADING).addGroup(groupLayout
.createSequentialGroup().addGap(10)
.addComponent(label, GroupLayout.PREFERRED_SIZE, 142, GroupLayout.PREFERRED_SIZE)
.addGap(188)
.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
.addComponent(label_2, GroupLayout.PREFERRED_SIZE, 73,
GroupLayout.PREFERRED_SIZE)
.addComponent(label_7))
.addPreferredGap(ComponentPlacement.RELATED)
.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
.addComponent(textField_1, GroupLayout.PREFERRED_SIZE, 130,
GroupLayout.PREFERRED_SIZE)
.addComponent(textField_4, GroupLayout.PREFERRED_SIZE, 75,
GroupLayout.PREFERRED_SIZE))
.addPreferredGap(ComponentPlacement.RELATED, 49, Short.MAX_VALUE))
.addGroup(groupLayout.createSequentialGroup().addGroup(groupLayout
.createParallelGroup(Alignment.LEADING)
.addGroup(groupLayout.createSequentialGroup().addGap(31).addComponent(label_5)
.addGap(18)
.addComponent(textField_3, GroupLayout.PREFERRED_SIZE, 105,
GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED, 37, Short.MAX_VALUE)
.addComponent(label_15)
.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
.addGroup(groupLayout.createSequentialGroup().addGap(119)
.addComponent(label_14))
.addGroup(groupLayout.createSequentialGroup().addGap(18)
.addComponent(textField_11, GroupLayout.PREFERRED_SIZE,
97, GroupLayout.PREFERRED_SIZE))))
.addGroup(groupLayout.createSequentialGroup().addGap(164)
.addGroup(groupLayout.createParallelGroup(Alignment.TRAILING)
.addGroup(groupLayout.createSequentialGroup()
.addComponent(label_1, GroupLayout.PREFERRED_SIZE, 34,
GroupLayout.PREFERRED_SIZE)
.addGap(18))
.addGroup(Alignment.LEADING, groupLayout.createSequentialGroup()
.addComponent(label_4, GroupLayout.PREFERRED_SIZE, 34,
GroupLayout.PREFERRED_SIZE)
.addGap(18)))
.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
.addComponent(textField, GroupLayout.PREFERRED_SIZE, 106,
GroupLayout.PREFERRED_SIZE)
.addComponent(comboBox_1, GroupLayout.PREFERRED_SIZE, 38,
GroupLayout.PREFERRED_SIZE))))
.addPrefer
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Java+Swing+Mysql实现学校教务管理系统 (245个子文件)
ManagerStu.class 16KB
ManagerTeach.class 15KB
ArrangeCourse.class 12KB
SelectCourse.class 11KB
ManagerCourse.class 11KB
AdminFrame.class 11KB
StudentFrame.class 11KB
ManagerClass.class 11KB
Login.class 10KB
ManagerScore.class 10KB
PublishScore.class 9KB
TeacherFrame.class 9KB
StudentCourse.class 8KB
StuTeaMessage.class 8KB
ManagerAdmin.class 7KB
ArrangeInfoDaoImpI.class 7KB
ChangePassword.class 7KB
StudentScore.class 6KB
ScoreInfoDaoImpI.class 6KB
CourseInfoDaoImpI.class 5KB
ClassInfoDaoImpI.class 5KB
TeacherInfoDaoImpI.class 5KB
StudentInfoDaoImpI.class 5KB
OsINF.class 5KB
UserInfoDaoImpI.class 5KB
About.class 4KB
ArrangeInfoDaoImpIPoxy.class 3KB
ScoreInfoDaoImpIProxy.class 3KB
CourseInfoDaoImpIProxy.class 3KB
ClassInfoDaoImpIPoxy.class 3KB
StudentInfo.class 2KB
UserInfoDaoImpIProxy.class 2KB
TeacherInfoDaoImpIProxy.class 2KB
DateUtil.class 2KB
StudentInfoDaoImpIProxy.class 2KB
TeacherInfo.class 2KB
ArrangeInfo.class 2KB
UserInfo.class 2KB
ScoreInfo.class 2KB
CourseInfo.class 1KB
ClassInfo.class 1KB
DataBaseConn.class 1KB
DAOFactory.class 1KB
Os.class 1KB
imageUtils.class 1KB
Login$6.class 1KB
msgUtils.class 1KB
TeacherFrame$13.class 1009B
StudentFrame$18.class 1009B
AdminFrame$21.class 994B
Login$SwingAction.class 773B
OsINF$1.class 758B
ChangePassword$2.class 752B
ChangePassword$1.class 750B
StudentFrame$16.class 750B
StudentFrame$6.class 747B
TeacherFrame$2.class 747B
StudentFrame$7.class 747B
TeacherFrame$3.class 747B
StudentFrame$9.class 747B
StudentFrame$4.class 747B
StudentFrame$5.class 747B
TeacherFrame$1.class 747B
StudentFrame$8.class 747B
StudentFrame$17.class 746B
StudentFrame$14.class 746B
StudentFrame$15.class 746B
StudentFrame$13.class 746B
StudentFrame$12.class 745B
TeacherFrame$12.class 745B
StudentFrame$3.class 743B
StudentFrame$2.class 743B
TeacherFrame$8.class 743B
TeacherFrame$7.class 743B
TeacherFrame$5.class 743B
StudentFrame$1.class 741B
ManagerCourse$2.class 740B
ManagerCourse$4.class 740B
ArrangeCourse$3.class 740B
ArrangeCourse$2.class 740B
ManagerCourse$3.class 740B
TeacherFrame$4.class 740B
TeacherFrame$11.class 740B
TeacherFrame$10.class 740B
StudentFrame$11.class 738B
ManagerScore$1.class 738B
ManagerAdmin$2.class 738B
TeacherFrame$9.class 738B
ArrangeCourse$1.class 738B
ManagerCourse$1.class 738B
StudentCourse$1.class 738B
TeacherFrame$6.class 736B
AdminFrame$5.class 736B
AdminFrame$2.class 736B
AdminFrame$6.class 736B
AdminFrame$3.class 736B
StudentFrame$10.class 736B
AdminFrame$1.class 736B
AdminFrame$4.class 736B
AdminFrame$9.class 735B
共 245 条
- 1
- 2
- 3
水坚石青
- 粉丝: 2w+
- 资源: 86
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
- 6
前往页