Java的问题,表格无法显示
小弟是新手,请各位大神看看,哪里出了问题
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import javax.swing.table.*;
import java.lang.Object.*;
import java.util.*;
import java.sql.*;
public class ZhuJieMian extends JFrame{
JButton b1=new JButton("商品管理");
JButton b2=new JButton("采购管理");
JButton b3=new JButton("销售管理");
JButton b4=new JButton("用户管理");
JButton b5=new JButton("权限管理");
JLabel l1=new JLabel("商品编号");
JLabel l2=new JLabel("商品名称");
JLabel l3=new JLabel("商品价格");
JLabel l4=new JLabel("生产日期");
JLabel l5=new JLabel("生产地");
JLabel l6=new JLabel("库存量");
public int screanWidth2,screanHeight2;
AbstractTableModel tm;
Vector vector;
String title[]={"商品编号","商品名称","商品价格","生产日期","生产地","库存量"};
public static void main(String[] args){
new ZhuJieMian();
}
public ZhuJieMian()
{
Toolkit tool=getToolkit();
Dimension dim=tool.getScreenSize();
screanWidth2=dim.width;
screanHeight2=dim.height;
createTable();
setTitle("商品管理");
setLayout(null);
Component add = add(b1);
add(b2);
add(b3);
add(b4);
add(b5);
b1.setBounds(15, 535, 100, 20);
b2.setBounds(130, 535, 100, 20);
b3.setBounds(245, 535, 100, 20);
b4.setBounds(360, 535, 100, 20);
b5.setBounds(475, 535, 100, 20);
setBounds(360,20,600,600);
setVisible(true);
}
void createTable()
{
JTable table;
JScrollPane scroll;
vector=new Vector();
tm=new AbstractTableModel()
{
public int getColumnCount()
{
return title.length;
}
public int getRowCount()
{
return vector.size();
}
public Object getValueAt(int row,int column)
{
if(!vector.isEmpty())
return ((Vector)vector.elementAt(row)).elementAt(column);
else
return null;
}
public void setValueAt(Object value,int row,int column)
{
}
public String getcoulumnName(int column)
{
return title[column];
}
public Class getColumnClass(int c)
{
return getValueAt(0,c).getClass();
}
public boolean isCellEditable(int row,int column)
{