- 博客(0)
- 资源 (2)
- 收藏
- 关注
软件工程课程可行性分析
《软件工程课程设计管理系统》可行性分析
1 引言
2 可行性研究的前景
3 对现有系统的分析
4 所建议的系统
5 可选择的其他系统方案
6 投资及收益分析
7 社会条件方面的可行性
8 结论
2014-03-24
学生信息管理系统
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
import java.util.Hashtable;
public class EmployeeManager extends JFrame implements ActionListener
{
EmployeeSituation 基本信息录入=null;
ModifySituation 基本信息修改=null;
Open 基本信息打开=null;
Delete 基本信息删除=null;
Inquest 基本信息查询=null;
JMenuBar bar;
JMenu fileMenu;
JMenuItem 录入,修改,打开,删除,查询;
Container con=null;
Hashtable 基本信息=null;
File file=null;
CardLayout card=null;
JLabel label=null;
JPanel pCenter;
public EmployeeManager()
{
录入=new JMenuItem("录入职工基本信息");
修改=new JMenuItem("修改职工基本信息");
打开=new JMenuItem("打开职工基本信息");
查询=new JMenuItem("查询职工基本信息");
删除=new JMenuItem("删除职工基本信息");
bar=new JMenuBar();
fileMenu=new JMenu("菜单选项");
fileMenu.add(录入);
fileMenu.add(修改);
fileMenu.add(删除);
fileMenu.add(查询);
fileMenu.add(打开);
bar.add(fileMenu);
setJMenuBar(bar);
label=new JLabel("欢迎进入职工信息管理系统",JLabel.CENTER);
label.setFont(new Font("SansSerif",Font.BOLD+Font.ITALIC,25));
label.setForeground(Color.red);
基本信息=new Hashtable();
录入.addActionListener(this);
修改.addActionListener(this);
删除.addActionListener(this);
查询.addActionListener(this);
打开.addActionListener(this);
card=new CardLayout();
con=getContentPane();
pCenter=new JPanel();
pCenter.setLayout(card);
pCenter.setBackground(Color.yellow);
file=new File("基本信息.txt");
if(!file.exists())
{
try
{
FileOutputStream out=new FileOutputStream(file);
ObjectOutputStream objectOut=new ObjectOutputStream(out);
objectOut.writeObject(基本信息);
objectOut.close();
out.close();
}
catch(IOException e)
{
}
}
基本信息录入=new EmployeeSituation(file);
基本信息修改=new ModifySituation(file);
基本信息打开=new Open(this,file);
基本信息删除=new Delete(file);
基本信息查询=new Inquest(file);
pCenter.add("欢迎语界面",label);
pCenter.add("录入界面",基本信息录入);
pCenter.add("修改界面",基本信息修改);
pCenter.add("删除界面",基本信息删除);
pCenter.add("查询界面",基本信息查询);
con.add(pCenter,BorderLayout.CENTER);
con.validate();
addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent e)
{
System.exit(0);
}});
setVisible(true);
setBounds(150,100,620,580);
validate();
}
public void actionPerformed(ActionEvent e)
{
if(e.getSource()==录入)
{
card.show(pCenter,"录入界面");
}
else if(e.getSource()==修改)
{
card.show(pCenter,"修改界面");
}
else if(e.getSource()==删除)
{
card.show(pCenter,"删除界面");
}
else if(e.getSource()==查询)
{
card.show(pCenter, "查询界面");
}
else if(e.getSource()==打开)
{
基本信息打开.setVisible(true);
}
}
public static void main(String args[])
{
new EmployeeManager();
}}
2014-01-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人