This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 216558
Collapse All | Expand All

(-)a/db.dataview/src/org/netbeans/modules/db/dataview/table/JXTableDecorator.java (-4 / +6 lines)
Lines 45-50 Link Here
45
import java.awt.Graphics;
45
import java.awt.Graphics;
46
import java.awt.Rectangle;
46
import java.awt.Rectangle;
47
import javax.swing.ListSelectionModel;
47
import javax.swing.ListSelectionModel;
48
import javax.swing.UIManager;
48
import javax.swing.table.TableColumn;
49
import javax.swing.table.TableColumn;
49
import javax.swing.table.TableColumnModel;
50
import javax.swing.table.TableColumnModel;
50
import javax.swing.table.TableModel;
51
import javax.swing.table.TableModel;
Lines 56-64 Link Here
56
 */
57
 */
57
public class JXTableDecorator extends JXTable {
58
public class JXTableDecorator extends JXTable {
58
59
59
    public static final Color ALTERNATE_ROW_COLOR = new Color(0.92F, 0.95F, 0.99F);
60
    public static final Color ROW_COLOR = UIManager.getColor("nb.dataview.table.background") != null ? UIManager.getColor("nb.dataview.table.background") : Color.WHITE;
60
    public static final Color GRID_COLOR = new Color(14277081);
61
    public static final Color ALTERNATE_ROW_COLOR = UIManager.getColor("nb.dataview.table.altbackground") != null ? UIManager.getColor("nb.dataview.table.altbackground") : new Color(0.92F, 0.95F, 0.99F);
61
    public static final Color ROLLOVER_ROW_COLOR = new Color(0.94F, 0.96F, 0.96F);
62
    public static final Color GRID_COLOR = UIManager.getColor("nb.dataview.table.gridbackground") != null ? UIManager.getColor("nb.dataview.table.gridbackground") : new Color(14277081);
63
    public static final Color ROLLOVER_ROW_COLOR = UIManager.getColor("nb.dataview.table.altbackground") != null ? UIManager.getColor("nb.dataview.table.altbackground") : new Color(0.94F, 0.96F, 0.96F);
62
64
63
    JXTableDecorator() {
65
    JXTableDecorator() {
64
        super();
66
        super();
Lines 115-120 Link Here
115
    }
117
    }
116
118
117
    protected Color backgroundColorForRow(int row) {
119
    protected Color backgroundColorForRow(int row) {
118
        return (row % 2 == 0) ? Color.WHITE : ResultSetJXTable.ALTERNATE_ROW_COLOR;
120
        return (row % 2 == 0) ? ResultSetJXTable.ROW_COLOR : ResultSetJXTable.ALTERNATE_ROW_COLOR;
119
    }
121
    }
120
}
122
}
(-)a/db.dataview/src/org/netbeans/modules/db/dataview/table/JXTableRowHeader.java (-1 / +1 lines)
Lines 198-204 Link Here
198
        this.headerTable.setRowHeight(table.getRowHeight());
198
        this.headerTable.setRowHeight(table.getRowHeight());
199
        this.headerTable.setShowGrid(true, true);
199
        this.headerTable.setShowGrid(true, true);
200
        this.headerTable.setGridColor(ResultSetJXTable.GRID_COLOR);
200
        this.headerTable.setGridColor(ResultSetJXTable.GRID_COLOR);
201
        this.headerTable.setHighlighters(HighlighterFactory.createAlternateStriping(Color.WHITE, ResultSetJXTable.ALTERNATE_ROW_COLOR));
201
        this.headerTable.setHighlighters(HighlighterFactory.createAlternateStriping(ResultSetJXTable.ROW_COLOR, ResultSetJXTable.ALTERNATE_ROW_COLOR));
202
202
203
        JXTable jxTable = (JXTable) table;
203
        JXTable jxTable = (JXTable) table;
204
        jxTable.getFilters().addPipelineListener(new PipelineListener() {
204
        jxTable.getFilters().addPipelineListener(new PipelineListener() {

Return to bug 216558