ImageVerifierCode 换一换
格式:DOCX , 页数:13 ,大小:17.75KB ,
资源ID:13509470      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/13509470.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(java车辆管理系统方案Word文档下载推荐.docx)为本站会员(b****4)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

java车辆管理系统方案Word文档下载推荐.docx

1、 int w=getBounds().width; int h=getBounds().height; if(imageFile!=null) Image image=tool.getImage(imageFile.getAbsolutePath(); g.drawImage(image, 0,0,w,h, this);/3.3Car 类class Car implements Serializable String number,name,discipling,grade,borth,sex;File imagePic;public void setNumber(String number)

2、 this.number=number;public String getNumber() return number;public void setName(String name) this.name=name;public String getName() return name;public void setDiscipling(String discipling) this.discipling=discipling;public String getDiscipling()return discipling;public void setGrade(String grade) th

3、is.grade=grade;public String getGrade() return grade;public void setBorth(String borth) this.borth=borth;public String getBorth() return borth;public void setSex(String sex) this.sex=sex;public String getSex() return sex;public void setImagePic(File image) imagePic=image;public File getImagePic() re

4、turn imagePic;/3.5InputCar 类class InputCar extends JPanel implements ActionListener Car 车主 =null;CarPicture pic;HashMap 基本信息表 =null;JTextField 车牌号,姓名,购车公司 ,购车时间 ;JButton 选择照片 ;JComboBox 档次 ; JRadioButton 男, 女 ;ButtonGroup group=null;JButton 录入 , 重置 ;FileInputStream inOne=null;ObjectInputStream inTwo

5、=null;FileInputStream outOne=null;ObjectOutputStream outTwo=null;File systemFile,imagePic;public InputCar(File file) systemFile=file;pic=new CarPicture(); 车牌号 =new JTextField(5);姓名=new JTextField(5);档次 =new JComboBox();try FileReader inOne = new FileReader( 专业 .txt);BufferedReader inTwo = new Buffer

6、edReader(inOne); String s = null;int i=0;while(s=inTwo.readLine()!档次 .addItem(s);inOne.close(); inTwo.close();catch(IOException exp)档次 .addItem( 高级 中高级 档次 .addItem( 中级 中低级 档次.additem(” 普通购车公司 =new JTextField(5);购车时间 =new JTextField(5);选择照片 =new JButton( 选择 group=new ButtonGroup();男=new JRadioButton(

7、男,true); 女=new JRadioButton(女group.add( 男);group.add( 女);录入 =new JButton( 录入 重置 =new JButton( 重置 录入 .addActionListener(this); 选择照片 .addActionListener(this);重置 .addActionListener(this);Box box1=Box.createHorizontalBox();box1.add(new JLabel( 车牌号: ,JLabel.CENTER); box1.add( 车牌号 );Box box2=Box.createHor

8、izontalBox();box2.add(new JLabel( 车主姓名:box2.add( 姓名 );Box box3=Box.createHorizontalBox();box3.add(new JLabel( 车主性别:box3.add( 男 );box3.add( 女 );Box box4=Box.createHorizontalBox();box4.add(new JLabel( 车辆档次:box4.add( 档次 );Box box5=Box.createHorizontalBox();box5.add(new JLabel( 购车公司:box5.add( 购车公司 );Box

9、 box6=Box.createHorizontalBox();box6.add(new JLabel( 购车时间:box6.add( 购车时间 );Box boxH=Box.createVerticalBox();boxH.add(box1);boxH.add(box2);boxH.add(box3);boxH.add(box4);boxH.add(box5);boxH.add(box6); boxH.add(Box.createVerticalGlue();JPanel picPanel=new JPanel(); picPanel.setBackground(Color.green);

10、picPanel.add(new JLabel( 选择照片: picPanel.add( 选择照片 );JPanel putButton=new JPanel();putButton.add( 录入 );putButton.add( 重置 );JPanel messPanel=new JPanel();messPanel.add(boxH); messPanel.setBackground(Color.cyan);putButton.setBackground(Color.red);setLayout(new BorderLayout();JSplitPane splitV=new JSpli

11、tPane(JSplitPane.VERTICAL_SPLIT,picPanel,pic);JSplitPane splitH=new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,messPanel,splitV); add(splitH,BorderLayout.CENTER);add(putButton,BorderLayout.SOUTH);validate();public void actionPerformed(ActionEvent e) if(e.getSource()= 录入 )String number=;number= 车牌号 .getT

12、ext(); if(number.length()0)try inOne =new FileInputStream(systemFile);inTwo =new ObjectInputStream(inOne);基本信息表 =(HashMap)inTwo.readObject(); inOne.close();inTwo.close();catch(Exception ee)if( 基本信息表 .containsKey(number)String warning= 该生基本信息已存在,请到修改页面修改!JOptionPane.showMessageDialog(this,warning, 警告,JOptionPane.WARNING_MESSAGE);elseString m= 基本信息将被录入!int ok=JOptionPane.showConfirmDialog(this,m, 确认,JOptionPane.YES_NO_OPTION,JOptionPane.INFORMATION_MESSAGE);if(ok=JOptionPane.YES_OPTION)String name=String discipling=(String)姓名 .getText();档次 .getSelectedItem();String

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1