, - ( ). /, ( 4- ), script/program ( ). , , . , , , , DefaultCellRenderer, , ( , ). "Keep It Simple Stupid" (KISS ) ... , - .
for(int r=0;r<table.getRowCount();r++) {
if(!table.getValueAt(r, 2).equals(table.getValueAt(r, 3))) {
for(int c=0;c<table.getColumnCount();c++) {
table.setValueAt("<html><b>" + table.getValueAt(r, c) + "</b></html>", r, c);
}
}
}
I'm sure there are other, more efficient methods ... but that was what I was able to come up with my (still limited) Java knowledge that really worked in my situation. Again, sorry to revive the old post, but I hope this helps some others in similar situations for my own.
source
share