您的位置:首页 > 兼职实习兼职实习

用JAVA设计一个个人简历

admin2024-01-29人已围观

美工没做,我不是美工。主要功能好了,信息存在d盘jianli.txt.可以自己修改,现在好像不能发那么长的了,我分两段吧。。。。

import java.io.*;

import java.awt.*;

import java.awt.event.ActionEvent;

import java.awt.event.ActionListener;

import javax.swing.*;

public class JianliTest extends JFrame{

int width = Toolkit.getDefaultToolkit().getScreenSize().width;

int height = Toolkit.getDefaultToolkit().getScreenSize().height;

JLabel jb_name = null;//姓名

JTextField jf1 = null;

JLabel jb_jiguan = null;//籍贯

JTextField jf2 = null;

ButtonGroup bg = null;

JRadioButton rb1 = null;//性别

JRadioButton rb2 = null;//性别

JLabel jb_sex  = null;

JLabel jb_jiaoyu = null;//教育程度

JComboBox jcb = null;

JLabel jll = null;

JTextArea jt = null;//简历

JButton jb = null;//提交按钮

JPanel jp1 = null;

//输入输出流

BufferedReader buf = null;

PrintWriter out =  null;

public JianliTest()

{

this.setTitle(我的个人简历);

this.setSize(500,500);

this.setResizable(false);

this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

this.setLocation((width-500)/2, (height-500)/2);

Container con = this.getContentPane();

jp1 = new JPanel();

jp1.setLayout(null);

con.add(jp1,BorderLayout.CENTER);

jb_name = new JLabel(姓 名 : );

jb_name.setBounds(180,30,50,20);

jf1 = new JTextField(15);

jf1.setBounds(220,30,100,20);

jp1.add(jb_name);

jp1.add(jf1);

jb_jiguan = new JLabel(籍 贯 : );

jb_jiguan.setBounds(180,60,50,20);

jf2 = new JTextField(15);

jf2.setBounds(220,60,100,20);

jp1.add(jb_jiguan);

jp1.add(jf2);

jb_sex = new JLabel(性 别 :);

jb_sex.setBounds(180,80,50,20);

jp1.add(jb_sex);

rb1 = new JRadioButton(男);

rb2 = new JRadioButton(女);

bg = new ButtonGroup();

bg.add(rb1);

bg.add(rb2);

rb1.setBounds(220,80,50,20);

rb2.setBounds(270,80,50,20);

jp1.add(rb1);

jp1.add(rb2);

//教育程度

jb_jiaoyu = new JLabel(学 历 : );

jb_jiaoyu.setBounds(180,100,50,20);

jp1.add(jb_jiaoyu);

jcb = new JComboBox();

jcb.addItem(专科);

jcb.addItem(本科);

jcb.addItem(硕士);

jcb.addItem(博士);

jcb.setBounds(220,100,100,20);

jp1.add(jcb);

jll  = new JLabel(个人简历:);

jll.setBounds(180,130,100,20);

jp1.add(jll);

jt = new JTextArea();

jt.setBounds(180,150,250,250);

jt.setBackground(Color.LIGHT_GRAY);

jp1.add(jt);

jb  = new JButton(提交);

jb.setBounds(260,400,70,30);

jp1.add(jb);

很赞哦! ()

上一篇:JAVA简历怎么写好,,我有一个,大家来评价一下怎么样写才好呢'>谈谈自媒体、新媒体和融媒体

下一篇:暑假工社会实践总结通用5篇'>返回列表

随机图文