eclipse报错问题,好像是变量的类型错了,想问下怎么解决
异常如下:
根据异常信息,具体代码如下:
Book_Seek类:
table=new JTable(booktable);
table.getColumn("编号").setPreferredWidth(120);
table.getColumn("书名").setPreferredWidth(150);
table.getColumn("作者").setPreferredWidth(80);
table.getColumn("总数量").setPreferredWidth(50);
table.getColumn("剩余数量").setPreferredWidth(50);
scrollPane=new JScrollPane(table);
add(scrollPane);
scrollPane.setBounds(40,100,740,290);
this.setBorder(BorderFactory.createEtchedBorder());
Manager_Frame类:
private JFrame frame=new JFrame("图书馆管理系统");
private JPanel contentPane;
Book_Seek book_seek=new Book_Seek();
Add_Reader add_reader=new Add_Reader();
Reader_Seek reader_seek =new Reader_Seek();
Edit_Reader edit_reader =new Edit_Reader();
Manager_Message panel=new Manager_Message();