当前位置: 技术问答>java相关
JTable设置行的颜色?
来源: 互联网 发布时间:2017-04-28
本文导语: 如何能设置每一行的颜色呢? | public class StyleTable extends JTable { public StyleTable() {} public void paintRow() { TableColumnModel tcm = this.getColumnModel(); for (int i=0, n=tcm.getColumnCount(...
如何能设置每一行的颜色呢?
|
public class StyleTable extends JTable {
public StyleTable() {}
public void paintRow() {
TableColumnModel tcm = this.getColumnModel();
for (int i=0, n=tcm.getColumnCount();i
public StyleTable() {}
public void paintRow() {
TableColumnModel tcm = this.getColumnModel();
for (int i=0, n=tcm.getColumnCount();i