Java如何从数据库中读取图片显示在JTable里 求救!!

只显示了路径,却不显示图片图片说明

String[] columnNames = {"图书封面","图书","分类","位置","数量(本)","剩余(本)","单价(元)","操作" };
        String BookCover,BNo,IndexNo,BookName,Publish,Author;

        try {
            BookAction bookAction = new BookAction();
            Object[][] results = bookAction.initializTable(columnNames);

            t1 = new JTable(results,columnNames);
            t1.setBounds(200, 100, 850, 600);
            t1.setFont(new Font("微软雅黑", Font.BOLD, 12));
            t1.setRowHeight(90); 
        } catch (SQLException e1) {
            // TODO Auto-generated catch block
            e1.printStackTrace();
        }

查了好久的资料都没有解决。
大神求救!!

查看全部
weixin_43723877
Radish萝卜
2019/06/03 00:29
  • java
  • eclipse
  • 点赞
  • 收藏
  • 回答
    私信

3个回复