# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: /home/matthias/NetBeansProjects/core-main # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: db.dataview/src/org/netbeans/modules/db/dataview/output/DataViewTableUI.java --- db.dataview/src/org/netbeans/modules/db/dataview/output/DataViewTableUI.java Base (BASE) +++ db.dataview/src/org/netbeans/modules/db/dataview/output/DataViewTableUI.java Locally Modified (Based On LOCAL) @@ -180,7 +180,7 @@ "nb.dataview.tablecell.edited.selected.foreground"); //NOI18N selectedForeground = selectedFgFromMngr != null ? selectedFgFromMngr - : Color.ORANGE; + : new Color(229, 148, 0); Color unselectedFgFromMngr = UIManager.getColor( "nb.dataview.tablecell.edited.unselected.foreground"); //NOI18N unselectedForeground = unselectedFgFromMngr != null Index: db.dataview/src/org/netbeans/modules/db/dataview/table/CellFocusCustomRenderer.java --- db.dataview/src/org/netbeans/modules/db/dataview/table/CellFocusCustomRenderer.java Base (BASE) +++ db.dataview/src/org/netbeans/modules/db/dataview/table/CellFocusCustomRenderer.java Locally Modified (Based On LOCAL) @@ -45,14 +45,17 @@ import java.awt.Color; import java.awt.Component; import javax.swing.JTable; +import javax.swing.UIManager; import javax.swing.table.DefaultTableCellRenderer; -/** - * - * @author Shankari - */ public class CellFocusCustomRenderer extends DefaultTableCellRenderer { + private final static Color selectedCellBackgroundMgr = UIManager.getColor( + "nb.dataview.tablecell.focused"); //NOI18N + private final static Color selectedCellBackground = selectedCellBackgroundMgr != null + ? selectedCellBackgroundMgr + : new Color(204,204,255); + public CellFocusCustomRenderer() { setOpaque(true); } @@ -61,8 +64,8 @@ public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected,boolean hasFocus,int row, int column) { super.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column); if (hasFocus) { - setBackground(new Color(204,204,255)); - setForeground(Color.BLACK); + setBackground(selectedCellBackground); + setForeground(table.getForeground()); } else if (isSelected) { setBackground(table.getSelectionBackground()); setForeground(table.getSelectionForeground()); Index: db.dataview/src/org/netbeans/modules/db/dataview/table/ResultSetCellRenderer.java --- db.dataview/src/org/netbeans/modules/db/dataview/table/ResultSetCellRenderer.java Base (BASE) +++ db.dataview/src/org/netbeans/modules/db/dataview/table/ResultSetCellRenderer.java Locally Modified (Based On LOCAL) @@ -202,10 +202,6 @@ Component c = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); c.setFont(new Font(c.getFont().getFamily(), Font.ITALIC, 9)); ((JLabel) c).setToolTipText(value.toString()); - if (!isSelected) { - c.setForeground(Color.DARK_GRAY); - } - return c; } }