两只小熊队高级软件工程第九次作业敏捷冲刺7
团队的作业:学生信息管理系统
- 队员学号:
周菲(队长) 201810812007
孔繁燕 201810812001
1、 站立式会议照片:

2、每个人的工作:
周菲:
今天已完成: 界面优化,增加了一些小图标
明日计划: SQLyog表格外键设置优化
孔繁燕:
今天已完成:界面优化测试
明日计划:SQLyog表格外键设置优化测试
3、项目燃尽图

4、部分项目代码和截图:https://coding.net/u/dhlg_201810812007/p/task_4/git
JButton btnLogin = new JButton("登陆");
btnLogin.setForeground(UIManager.getColor("Button.disabledShadow"));
btnLogin.setFont(new Font("微软雅黑", Font.PLAIN, 12));
btnLogin.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent arg0)
{
// 系统登陆界面登陆代码
String username=txtUsername.getText();
String password=txtPassword.getText();
Properties props=new Properties();
try
{
props.load(new FileInputStream("Users.txt"));
String message=null;
boolean isLogin=false;
if(!props.containsKey(username))
{
message="用户名不存在";
}
else if(!props.getProperty(username).equals(password))
{
message="密码错误";
}
else
{
message="登陆成功";
isLogin=true;
}
//显示登陆信息
LoginMessageDialog loginDialog=new LoginMessageDialog();
MainContainer mainContainer=new MainContainer();
loginDialog.setVisible(true);
if(isLogin)
{
//显示主窗体
System.out.println("显示主窗体");
loginDialog.setVisible(false);
LoginFrame.this.setVisible(false);
mainContainer.setVisible(true);
}
}
catch (IOException e)
{
e.printStackTrace();
}
}
});
btnLogin.setBounds(210, 279, 63, 23);
contentPane.add(btnLogin);
JButton btnCancel = new JButton("取消");
btnCancel.setForeground(UIManager.getColor("Button.disabledShadow"));
btnCancel.setFont(new Font("微软雅黑", Font.PLAIN, 12));
btnCancel.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
//取消登陆代码
System.exit(0);
}
});
btnCancel.setBounds(346, 279, 63, 23);
contentPane.add(btnCancel);
lblNewLabel.setBackground(Color.WHITE);
lblNewLabel.setBounds(0, 0, 603, 335);
contentPane.add(lblNewLabel);
lblNewLabel.setIcon(new ImageIcon(LoginFrame.class.getResource("/image/background.jpg")));
浙公网安备 33010602011771号