91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

這是本人在做課程設(shè)計(jì)的時(shí)候?qū)懙挠肑ava實(shí)現(xiàn)商品信息管理系統(tǒng)的代碼,具體信息請看本人博客,博客地址https://blog.csdn.net/vegetable_haker/article/details/102556311,其中MySQL數(shù)據(jù)庫需要根據(jù)本地配置做些修改 (本人菜鳥一枚,代碼是課設(shè)時(shí)寫的,僅供學(xué)交流使用,有諸多不完善的地方,介意請謹(jǐn)慎下載)

資源截圖

代碼片段和文件信息

package?商品信息管理系統(tǒng);

import?java.awt.*;
import?java.awt.event.*;
import?java.sql.*;
import?javax.swing.*;

class?AddGoods?extends?Jframe?implements?ActionListener?{
JLabel?JL?=?new?JLabel(“添加基本信息:“);
JLabel?number?=?new?JLabel(“商品編號“);
JTextField?Number?=?new?JTextField();

JLabel?JClass=new?JLabel(“類別“);
String?str[]={“食品““化妝品““日用品““飲料“};
JComboBox?jcb=new?JComboBox(str);

JLabel?name?=?new?JLabel(“商品名稱“);
JTextField?Name?=?new?JTextField();
JLabel?price=new?JLabel(“商品價(jià)格“);
JTextField?Price?=?new?JTextField();
JLabel?storage=?new?JLabel(“庫存量“);
JTextField?Storage?=?new?JTextField();
JLabel?brand=?new?JLabel(“品牌“);
JTextField?Brand?=?new?JTextField();
JLabel?vender?=?new?JLabel(“生產(chǎn)廠家“);
JTextField?Vender?=?new?JTextField();

JTextField?jt=new?JTextField(10);
JButton?Add?=?new?JButton(“添加“);
JButton?Reset?=?new?JButton(“重置“);
JButton?Exit?=?new?JButton(“退出“);
String?sql?=?““;
public?AddGoods(){
this.settitle(“商品管理“);
this.setLayout(null);
JL.setBounds(10050?100?20);
this.add(JL);
number.setBounds(10010010020);
this.add(number);
Number.setBounds(20010010020);
this.add(Number);
JClass.setBounds(10015010020);
this.add(JClass);
jcb.setBounds(20015010020);
this.add(jcb);
name.setBounds(10020010020);
this.add(name);
Name.setBounds(20020010020);
this.add(Name);
price.setBounds(10025010020);
this.add(price);
Price.setBounds(20025010020);
this.add(Price);
storage.setBounds(10030010020);
this.add(storage);
Storage.setBounds(20030010020);
this.add(Storage);
brand.setBounds(10035010020);
this.add(brand);
Brand.setBounds(20035010020);
this.add(Brand);
vender.setBounds(10040010020);?????
this.add(vender);
Vender.setBounds(20040010020);
this.add(Vender);
Add.setBounds(1004506020);
this.add(Add);
Add.addActionListener(this);
Reset.setBounds(2004506020);
this.add(Reset);?????
Reset.addActionListener(this);
Exit.setBounds(300?45060?20);
this.add(Exit);
Exit.addActionListener(this);
this.setVisible(true);
this.setBounds(1010450540);
this.setDefaultCloseOperation(Jframe.EXIT_ON_CLOSE);
}
public?static?void?main(String[]?args)?{
new?AddGoods();
}
public?void?actionPerformed(ActionEvent?e)?{
if(e.getSource()==Add)?{
String?snumber=Number.getText();
String?svender=Vender.getText();
String?sname=Name.getText();
String?sprice=Price.getText();
String?sstorage=Storage.getText();
String?sbrand=Brand.getText();
try?{
Connection?cot=ConnectionFactory.getConnection();
Statement?stm=cot.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE?ResultSet.CONCUR_UPDATABLE?);
int?s=jcb.getSelectedIndex();
String?jc=null;
if(s==0)
jc=“食品“;
else?if(s==1)
jc=“化妝品“;
else?if(s==2)
jc=“日用品“;
else?if(s==3)
jc=“飲料“;
sql=“insert?into?goods?values(‘

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件???????3719??2019-06-25?09:56??商品信息管理系統(tǒng)\AddGoods.java

?????文件???????1228??2019-06-22?20:29??商品信息管理系統(tǒng)\ConnectionFactory.java

?????文件???????3138??2019-06-26?11:07??商品信息管理系統(tǒng)\custom_Manage.java

?????文件?????????93??2019-06-24?11:46??商品信息管理系統(tǒng)\database.properties

?????文件???????1905??2019-06-27?11:35??商品信息管理系統(tǒng)\DeleteGoods.java

?????文件???????2494??2019-06-25?00:38??商品信息管理系統(tǒng)\GetGoods.java

?????文件???????2276??2019-06-25?09:44??商品信息管理系統(tǒng)\info_Manage.java

?????文件????????961??2019-06-25?01:27??商品信息管理系統(tǒng)\Purchase.java

?????文件???????1666??2019-06-22?19:14??商品信息管理系統(tǒng)\seller_Manage.java

?????文件???????4546??2019-06-26?09:53??商品信息管理系統(tǒng)\SetGoods.java

?????文件????????933??2019-06-21?23:38??商品信息管理系統(tǒng)\UsingExit.java

?????目錄??????????0??2019-06-22?20:10??商品信息管理系統(tǒng)

-----------?---------??----------?-----??----

????????????????22959????????????????????12


評論

共有 條評論