[Schmitzm-commits] r1809 - trunk/schmitzm-core/src/main/java/de/schmitzm/swing
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Dec 16 14:25:52 CET 2011
Author: mojays
Date: 2011-12-16 14:25:52 +0100 (Fri, 16 Dec 2011)
New Revision: 1809
Modified:
trunk/schmitzm-core/src/main/java/de/schmitzm/swing/SelectableJTable.java
Log:
SelectableJTable BugFix: Only set background color if cell is NOT selected!
Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/swing/SelectableJTable.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/swing/SelectableJTable.java 2011-12-16 11:21:46 UTC (rev 1808)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/swing/SelectableJTable.java 2011-12-16 13:25:52 UTC (rev 1809)
@@ -193,7 +193,8 @@
public Component prepareRenderer(final TableCellRenderer renderer, final int row, final int column) {
final Component prepareRenderer = super.prepareRenderer(renderer, row, column);
// set column background for cell
- prepareRenderer.setBackground( getColumnBackground(column) );
+ if ( !isCellSelected(row, column) )
+ prepareRenderer.setBackground( getColumnBackground(column) );
if ( !hasAutoGrowColumns() )
return prepareRenderer;
More information about the Schmitzm-commits
mailing list