且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

双击jtable中的imageicon会使imageIcon消失

更新时间:2023-12-04 10:08:52

我通过将ImageIcon.class更改为Icon.class来获得解决方案:

i got the solution by changing the ImageIcon.class to Icon.class here:

@Override
                public Class<?> getColumnClass(int column) {
                    if(column==2)
                    {
                            return Icon.class;
                    }
                    else
                        return Object.class;
                }