• 大小: 294KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-22
  • 语言: Java
  • 标签: java  管理系统  

资源简介

汽车管理系统(Java实现)源程序, MySQL数据库

资源截图

代码片段和文件信息

/*
 * To change this template choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author kaifeng
 */
 import java.awt.*;
 import java.awt.event.*;
 import java.sql.*;
 import javax.swing.JOptionPane;
public class addcar extends frame implements ActionListener{
    Panel p1;
    Label l1l2l3l4l5;
    TextField t1t2t3t4t5;
    Button b1;
    addcar(String s)
    {
        super(s);
        setBackground(Color.blue);
        setLayout(null);
        Toolkit tool=getToolkit();
        Dimension dim=tool.getScreenSize();
        l1=new Label(“编号“Label.CENTER);
        l1.setBackground(Color.GREEN);
        add(l1);
        l1.setBounds(1065dim.width*8/130dim.height*2/55);
        l2=new Label(“型号“Label.CENTER);
        l2.setBackground(Color.GREEN);
        add(l2);
        l2.setBounds(10115dim.width*8/130dim.height*2/55);
        l3=new Label(“品牌“Label.CENTER);
        l3.setBackground(Color.GREEN);
        add(l3);
        l3.setBounds(10165dim.width*8/130dim.height*2/55);
        l4=new Label(“价格“Label.CENTER);
        l4.setBackground(Color.GREEN);
        add(l4);
        l4.setBounds(21065dim.width*8/130dim.height*2/55);
        l5=new Label(“保修期“Label.CENTER);
        l5.setBackground(Color.GREEN);
        add(l5);
        l5.setBounds(210115dim.width*8/130dim.height*2/55);
        t1=new TextField(15);
        add(t1);
        t1.setBounds(10065dim.width*8/110dim.height*2/55);
        t2=new TextField(15);
        add(t2);
        t2.setBounds(100115dim.width*8/110dim.height*2/55);
        t3=new TextField(15);
        add(t3);
        t3.setBounds(100165dim.width*8/110dim.height*2/55);
        t4=new TextField(15);
        add(t4);
        t4.setBounds(30565dim.width*8/110dim.height*2/55);
        t5=new TextField(15);
        add(t5);
        t5.setBounds(305115dim.width*8/110dim.height*2/55);
        b1=new Button(“录入“);
        add(b1);
        b1.setBounds(300165dim.width*8/130dim.height*2/55);
        b1.addActionListener(this);
        
        
        setBounds(200200dim.width*2/6dim.height*2/6);
        setVisible(true);
        validate();
        addWindowListener(new WindowAdapter()//p177
        {
            public void windowClosing(WindowEvent e)
            {
               //System.exit(0);
                setVisible(false);
            }
        });
        
    }
    public void actionPerformed(ActionEvent e)
    {
        String ID=t1.getText();
        String type=t2.getText();
        String stander=t3.getText();
        String price=t4.getText();
        String fixtime=t5.getText();
        database b1=new database();
        try
        {
        CallableStatement ctate=b1.getConnection().prepareCall(“{call insertcar(??????)}“);
        ctate.setString(1 ID);
        ctate.setString(2 type);
        ctate.setString(3 stander);
        ctate.setString(4 price);
        ctate.setString(5 fixtime);
        ctate.registerOutParameter

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        613  2008-12-30 22:29  textprogram\build\classes\addcar$1.class

     文件       4201  2008-12-30 22:29  textprogram\build\classes\addcar.class

     文件       1966  2008-12-28 11:09  textprogram\build\classes\con_database.class

     文件        625  2009-01-12 18:56  textprogram\build\classes\customer$1.class

     文件       3662  2009-01-12 18:56  textprogram\build\classes\customer.class

     文件        661  2009-01-12 18:59  textprogram\build\classes\customerseecar$1.class

     文件       3442  2009-01-12 18:59  textprogram\build\classes\customerseecar.class

     文件       2496  2008-12-28 11:33  textprogram\build\classes\database.class

     文件        465  2009-01-12 18:55  textprogram\build\classes\feng.class

     文件        246  2008-12-30 21:01  textprogram\build\classes\findcar.class

     文件        626  2009-01-09 21:08  textprogram\build\classes\maintaincar$1.class

     文件       1370  2009-01-09 21:08  textprogram\build\classes\maintaincar.class

     文件        661  2009-01-12 21:47  textprogram\build\classes\managermanage1$1.class

     文件      16576  2009-01-12 21:47  textprogram\build\classes\managermanage1.class

     文件        625  2008-12-31 12:26  textprogram\build\classes\mangerin$1.class

     文件       3762  2008-12-31 12:26  textprogram\build\classes\mangerin.class

     文件        649  2009-01-13 00:02  textprogram\build\classes\mangermanage$1.class

     文件      18578  2009-01-13 00:02  textprogram\build\classes\mangermanage.class

     文件        613  2009-01-10 09:37  textprogram\build\classes\regist$1.class

     文件       5022  2009-01-10 09:37  textprogram\build\classes\regist.class

     文件       2152  2009-01-11 11:03  textprogram\build\classes\textdata.class

     文件        438  2008-12-27 23:03  textprogram\build\classes\tu.class

     文件        973  2008-12-29 22:09  textprogram\build\classes\tupian.class

     文件        625  2009-01-09 20:37  textprogram\build\classes\window$1.class

     文件       3167  2009-01-09 20:37  textprogram\build\classes\window.class

     文件       3370  2008-12-27 16:35  textprogram\build.xml

     文件       1450  2008-12-27 21:00  textprogram\dist\README.TXT

     文件       5589  2008-12-27 21:00  textprogram\dist\textprogram.jar

     文件       9665  2008-12-30 22:51  textprogram\hs_err_pid1532.log

     文件      10075  2009-01-09 20:24  textprogram\hs_err_pid2828.log

............此处省略42个文件信息

评论

共有 条评论