实现
public Component getTableCellRendererComponent(JTable jtblTable,
Object oValue,
boolean bIsSelected,
boolean bHasFocus,
int iRow,
int iColumn){
//这需要你把表格中的value定义一个类,包含Icon信息
this.setIcon(oValue中应该得到这个Icon)
return this;
}方法,里面可以放置任何组件
public Component getTableCellRendererComponent(JTable jtblTable,
Object oValue,
boolean bIsSelected,
boolean bHasFocus,
int iRow,
int iColumn){
//这需要你把表格中的value定义一个类,包含Icon信息
this.setIcon(oValue中应该得到这个Icon)
return this;
}方法,里面可以放置任何组件
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货