函数privatevoidjMenuItem9ActionPerformed(java.awt.event.ActionEventevt){//TODOaddyourhandlingcodehere:pany().setVisible(true);}//界面如下所示Goodi//事件处理函数//对按钮添加事件监听privatevoidjButton1ActionPerformed(java.awt.event.ActionEventevt){//TODOaddyourhandlingcodehere:Stringurl="jdbc:odbc:driver={essDriver(*.mdb)};DBQ=d:\\Stockk\\src\\aaa.mdb";Connectionconn=null;//连接数据库try{Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");conn=DriverManager.getConnection(url,"","");//字段和表名应为英文Statementstatement=(Statement)conn.createStatement();ResultSetrs=statement.executeQuery("select*from货物属性表where货物编码='"+this.jTextField1.getText()+"'");DefaultTableModeldtm=(DefaultTableModel)this.jTable1.getModel();for(inti=0;i<dtm.getRowCount();i++)dtm.removeRow(i);while(rs.next()){Stringdata[]=newString[8];data[0]=rs.getString("货物编码");