跪求高手帮帮我呀!
java.BookScan //调试此程序没任何问题,数据库数据也能读出
import java.awt.*;
import java.sql.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.*;
import javax.swing.table.*;
import conn.ConnectServer;
public class BookScan extends JFrame implements ActionListener{
JTable table;
DefaultTableModel dtm;
Vector title=new Vector();
JScrollPane p1;
JPanel p2=new JPanel();
JButton b1=new JButton( "首页 ");
JButton b2=new JButton( "上页 ");
JButton b3=new JButton( "下页 ");
JButton b4=new JButton( "尾页 ");
JLabel bb=new JLabel( " ");
int count=0;
int pagesize=6;
int pagecount=0;
int page=1;
Statement stmt;
ResultSet rs;
public BookScan() {
String sql= "select bookid as 图书编号,bookname as 图书名称,booktype as 图书类别,bookpub as 出版社名称,bookauthor as 作者姓名,bookpubdate as 出版日期,incomedate as 进库日期,briefintro as 内容简介,yesnoborrow as 是否借出 from book ";
try{
stmt=ConnectServer.con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
rs=stmt.executeQuery(sql);
count=getcount();
pagecount=(int)count/pagesize+(count%pagesize==0?0:1);
ResultSetMetaData dbmd=rs.getMetaData();
for(int i=1;i <=dbmd.getColumnCount();i++)
title.addElement(dbmd.getColumnName(i));
dtm=new DefaultTableModel(null,title);
table=new JTable(dtm);
initTable();
table.setRowHeight(20);
p1=new JScrollPane(table);
if(pagecount!=0)