url);Р Р String s="select * from book ";Р Statement sql=con.createStatement();Р ResultSet rs=sql.executeQuery(s);Р Р Р while(rs.next())Р {Р String bname=rs.getString(1);Р String bno=rs.getString(2);Р String price=rs.getString(3);Р String writer=rs.getString(4);Р String publish=rs.getString(5);Р String indate=rs.getString(6);Р ar[i][0]=bname;Р ar[i][1]=bno;Р ar[i][2]=price;Р ar[i][3]=writer;Р ar[i][4]=publish;Р ar[i][5]=indate;Р i++;Р }Р count=""+i+"";Р L.setText("书库现在共有图书"+count+"本");Р f.repaint();Р Р con.close();Р }catch(SQLException g)Р {Р System.out.println("E Code"+g.getErrorCode());Р System.out.println("E M"+g.getMessage());Р }Р Р }Р?Р public void actionPerformed(ActionEvent e)Р?{ Р Р Р String cmd=e.mand();Р if(cmd.equals("确定"))Р Р {Р f.hide();Р Р } Р Р if(cmd.equals("返回"))Р f.hide();