Had to change the color of the selected row to previous color since it was completely unreadable (white text on light pink background) when running Adempiere under the Windows theme.

Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2982910
This commit is contained in:
usrdno 2010-05-06 09:57:38 +00:00
parent 2544805d47
commit 6bdd1109b3
1 changed files with 3 additions and 5 deletions

View File

@ -712,16 +712,14 @@ public class CTable extends JTable
int vColIndex) {
Component c = super.prepareRenderer(renderer, rowIndex, vColIndex);
if (c==null) return c;
if (!this.isCellEditable(rowIndex, vColIndex))
if (!this.isCellEditable(rowIndex, vColIndex) || isCellSelected(rowIndex, vColIndex))
return c;
if (rowIndex % 2 == 0 && !isCellSelected(rowIndex, vColIndex)) {
if (rowIndex % 2 == 0) {
c.setBackground(AdempierePLAF.getFieldBackground_Selected());
} else {
// If not shaded, match the table's background
c.setBackground(getBackground());
}
if (isCellSelected(rowIndex, vColIndex))
c.setBackground(AdempierePLAF.getFieldBackground_ReadOnly());
return c;
}