@Override
public java.awt.Component getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column) {
setForeground(Color.black);
String category = (String) value;
setText(category);
if (categories.contains(category) || category.isEmpty()) {
setBackground(Colors.tableRowColor);
} else {
setBackground(Color.white);
}
if (isSelected) {
setBackground(Colors.navy);
setForeground(Color.white);
}
return this;
}
BenchmarkPortfolioStatisticsTable.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:swing
作者:
评论列表
文章目录