个人简历录入系统设计报告Word下载.docx
《个人简历录入系统设计报告Word下载.docx》由会员分享,可在线阅读,更多相关《个人简历录入系统设计报告Word下载.docx(15页珍藏版)》请在冰豆网上搜索。
1、个人基本信息(包括姓名、性别、专业、文化程度、等);
2、命令按钮:
提交和取消;
3、系统的功能详细设计。
(二)系统模块结构设计
通过对系统功能的分析,个人简历录入综合测评系统功能如图X所示。
姓名
图1个人简历录入系统功能图
通过上图的功能分析,把整个系统划分为6个模块:
1、个人姓名输入文本框,该模块主要实现:
姓名的输入、输出,借住函数JTextFieldgetJTextField()来实现;
2、性别模块,该模块主要实现,个人性别的选择工具:
男、女,借助函数JTextFieldgetJTextField()来实现;
3、专业模块,该模块主要实现专业在下拉框里的选择,借助函数JComboBoxgetJComboBox()来实现;
4、学历模块,该模块的主要功能是在下拉框里选择学历,借助函数JComboBoxgetJComboBox1()来实现;
5、命令按钮,该模块的主要功能是实现信息的存储和取消,借助函数JButtongetJButton()来实现;
6、存储文本框,该模块的功能主要是显示个人录入的信息,借助函数JTextAreagetJTextArea()来实现。
三、系统的设计与实现
(一)个人基本信息浏览:
分析:
首先输出表头,然输出个人简历的基本信息。
流程图如图X所示。
该模块的具体代码如下所示。
Stringstrzy=jComboBox.getSelectedItem().toString();
Stringstrwh=jComboBox1.getSelectedItem().toString();
jTextArea.setText("
姓名:
"
+strname+"
\r\n"
+"
性别:
+strsex+"
专业:
+strzy+"
文化:
+strwh);
(二)专业
主要包含计算机、电子、工商等,首先得输出下拉框,然后选择所需的专业
流程图如下:
专业
计算机
电子
工商
图2:
JComboBoxgetJComboBox()流程图
该模块的主要代码如下:
privateJComboBoxgetJComboBox(){
if(jComboBox==null){
String[]strcb={"
计算机"
"
电子"
工商"
};
jComboBox=newJComboBox(strcb);
jComboBox.setBounds(newRectangle(62,108,93,18));
}
returnjComboBox;
(三)学历浏览
学历
大专
本科
硕士
博士
主要包含大专、本科、硕士、博士等,在下拉框里能选出自己所修学位。
图3:
JComboBoxgetJComboBox1()流程图
(四)性别
性别需要是设置选择按钮:
男、女,并且只能选一个。
流程图如下:
性别
男
女
图4:
JTextFieldgetJTextField()流程图
privateJRadioButtongetJRadioButton(){
if(jRadioButton==null){
jRadioButton=newJRadioButton();
jRadioButton.setBounds(newRectangle(61,62,38,26));
jRadioButton.setText("
男"
);
returnjRadioButton;
privateJRadioButtongetJRadioButton1(){
if(jRadioButton1==null){
jRadioButton1=newJRadioButton();
jRadioButton1.setBounds(newRectangle(117,62,38,26));
jRadioButton1.setText("
女"
returnjRadioButton1;
(五)姓名
主要是实现输入姓名的文本框。
该模块的主要代码如下:
privateJTextFieldgetJTextField(){
if(jTextField==null){
jTextField=newJTextField();
jTextField.setBounds(newRectangle(61,24,180,18));
returnjTextField;
(六)命令按钮
命令按钮主要是实现提交和取消功能,并且只能选一个:
该模块的流程图如下:
命令按钮
提交
取消
图5:
JButtongetJButton()流程图
该模块的主要代码:
privateJButtongetJButton1(){
if(jButton1==null){
jButton1=newJButton();
jButton1.setBounds(newRectangle(158,181,60,28));
jButton1.setText("
取消"
jButton1.addActionListener(newjava.awt.event.ActionListener(){
publicvoidactionPerformed(java.awt.event.ActionEvente){
System.exit(0);
});
returnjButton1;
(七)存储文本框
该模块主要实现对所输入和选择信息的存储。
该模块的代码如下:
privateJTextAreagetJTextArea(){
if(jTextArea==null){
jTextArea=newJTextArea();
jTextArea.setBounds(newRectangle(16,225,229,130));
returnjTextArea;
publicstaticvoidmain(Stringargs[]){
newMyLuRu();
四、系统测试
(一)测试main(Stringargs[])函数
测试该函数使用的测试方法,测试的具体步骤,测试用例的选取,测试的结果。
图一
(二)专业
主要实现专业的选择
图三
(三)学位
主要是实现了学位的选择
(四)功能实现
输出所有功能
图四
五、总结
系统完成了姓名的输入文本框、性别的选择、专业的选择、学位的选择、提交与取消、输出文本框等功能。
系统有的代码有些过于复杂不足。
我的收获,更加熟悉了java的环境和系统设计的实现,更多的是各函数的设置和接口的实现。
主要有:
先实现单个模块,因为单个模块的调试比较方便、容易找出错误的地方,单个模块调试运行。
然后在进行模块的混合,进行一一混合变混合变调试,这样可以减少调试的难度,不至于很难找出出错的地方。
主函数和各个分函数的连接和函数名的定义,不要重复定义、都是private类型的,注意里面的的各变量的定义不要重复,方便于调试。
多看一些关于课本上的接口的处理,有助于自己在处理各模块之间的调整,平时多看看一些关于java的代码,有条件的可以试着调试,这样,自己做设计是就会顺利很多。
六、附件(代码、部分图表)
importjava.awt.BorderLayout;
importjavax.swing.*;
importjava.awt.Dimension;
importjava.awt.Rectangle;
publicclassMyLuRuextendsJFrame{
privatestaticfinallongserialVersionUID=1L;
privateJPaneljContentPane=null;
privateJLabeljLabel=null;
privateJLabeljLabel1=null;
privateJLabeljLabel2=null;
privateJLabeljLabel3=null;
privateJTextFieldjTextField=null;
privateJRadioButtonjRadioButton=null;
privateJRadioButtonjRadioButton1=null;
privateJComboBoxjComboBox=null;
privateJComboBoxjComboBox1=null;
privateJButtonjButton=null;
privateJButtonjButton1=null;
privateJTextAreajTextArea=null;
privateButtonGroupmybg=newButtonGroup();
/**
*Thisisthedefaultconstructor
*/
publicMyLuRu(){
super();
initialize();
*Thismethodinitializesthis
*
*@returnvoid
privatevoidinitialize(){
this.setSize(268,407);
this.setContentPane(getJContentPane());
this.setTitle("
录入"
this.addWindowListener(newjava.awt.event.WindowAdapter(){
publicvoidwindowClosing(java.awt.event.WindowEvente){
this.setVisible(true);
*ThismethodinitializesjContentPane
*@returnjavax.swing.JPanel
privateJPanelgetJContentPane(){
if(jContentPane==null){
jLabel3=newJLabel();
jLabel3.setBounds(newRectangle(16,150,65,18));
jLabel3.setText("
文化程度:
jLabel2=newJLabel();
jLabel2.setBounds(newRectangle(16,108,39,18));
jLabel2.setText("
jLabel1=newJLabel();
jLabel1.setBounds(newRectangle(16,66,39,18));
jLabel1.setText("
jLabel=newJLabel();
jLabel.setBounds(newRectangle(16,24,39,18));
jLabel.setText("
姓名:
jContentPane=newJPanel();
jContentPane.setLayout(null);
jContentPane.add(jLabel,null);
jContentPane.add(jLabel1,null);
jContentPane.add(jLabel2,null);
jContentPane.add(jLabel3,null);
jContentPane.add(getJTextField(),null);
jContentPane.add(getJRadioButton(),null);
jContentPane.add(getJRadioButton1(),null);
mybg.add(jRadioButton);
mybg.add(jRadioButton1);
jContentPane.add(getJComboBox(),null);
jContentPane.add(getJComboBox1(),null);
jContentPane.add(getJButton(),null);
jContentPane.add(getJButton1(),null);
jContentPane.add(getJTextArea(),null);
returnjContentPane;
*ThismethodinitializesjTextField
*@returnjavax.swing.JTextField
privateJTextFieldgetJTextField(){
*ThismethodinitializesjRadioButton
*@returnjavax.swing.JRadioButton
privateJRadioButtongetJRadioButton(){
*ThismethodinitializesjRadioButton1
*ThismethodinitializesjComboBox
*@returnjavax.swing.JComboBox
privateJComboBoxgetJComboBox(){
*ThismethodinitializesjComboBox1
privateJComboBoxgetJComboBox1(){
if(jComboBox1==null){
String[]strcb2={"
大专"
本科"
硕士"
博士"
jComboBox1=newJComboBox(strcb2);
jComboBox1.setBounds(newRectangle(92,150,125,18));
returnjComboBox1;
*ThismethodinitializesjButton
*@returnjavax.swing.JButton
privateJButtongetJButton(){
if(jButton==null){
jButton=newJButton();
jButton.setBounds(newRectangle(66,181,60,28));
jButton.setText("
提交"
jButton.addActionListener(newjava.awt.event.ActionListener(){
Stringstrname=jTextField.getText();
Stringstrsex="
;
if(jRadioButton1.isSelected()){
strsex="
【本文档内容可以自由复制内容或自由编辑修改内容期待你的好评和关注,我们将会做得更好】