|
|
@ -61,10 +61,9 @@ public class DarkCellRendererToggleButton<T extends JToggleButton & CellEditorTo |
|
|
|
toggleButton.setHorizontalAlignment(table.getComponentOrientation().isLeftToRight() ? LEFT : RIGHT); |
|
|
|
toggleButton.setHorizontalAlignment(table.getComponentOrientation().isLeftToRight() ? LEFT : RIGHT); |
|
|
|
toggleButton.setHasFocus(focus); |
|
|
|
toggleButton.setHasFocus(focus); |
|
|
|
|
|
|
|
|
|
|
|
boolean isLeadSelectionCell = DarkUIUtil.hasFocus(table) |
|
|
|
boolean isLeadSelectionCell = DarkUIUtil.hasFocus(table) && (focus |
|
|
|
&& table.getSelectionModel().getLeadSelectionIndex() == row |
|
|
|
|| (table.getSelectionModel().getLeadSelectionIndex() == row |
|
|
|
&& (table.getColumnModel().getSelectionModel().getLeadSelectionIndex() == column |
|
|
|
&& DarkTableCellFocusBorder.isRowFocusBorder(table))); |
|
|
|
|| DarkTableCellFocusBorder.isRowFocusBorder(table)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
boolean alternativeRow = Boolean.TRUE.equals(table.getClientProperty(DarkTableUI.KEY_ALTERNATE_ROW_COLOR)); |
|
|
|
boolean alternativeRow = Boolean.TRUE.equals(table.getClientProperty(DarkTableUI.KEY_ALTERNATE_ROW_COLOR)); |
|
|
|
Color alternativeRowColor = UIManager.getColor("Table.alternateRowBackground"); |
|
|
|
Color alternativeRowColor = UIManager.getColor("Table.alternateRowBackground"); |
|
|
|