148 |
setBackground(table.getBackground()); |
setBackground(table.getBackground()); |
149 |
setForeground(table.getForeground()); |
setForeground(table.getForeground()); |
150 |
} |
} |
151 |
if (hasFocus) |
|
152 |
{ |
Border b = UIManager.getBorder("Table.focusCellHighlightBorder"); |
153 |
setBackground(table.getBackground()); |
if (!(b instanceof EmptyBorder)) |
154 |
setBorder(UIManager.getBorder("Table.focusCellHighlightBorder")); |
{ |
155 |
} |
if (hasFocus) |
156 |
else |
{ |
157 |
setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1)); |
setBackground(table.getBackground()); |
158 |
|
setBorder(b); |
159 |
|
} |
160 |
|
else |
161 |
|
setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1)); |
162 |
|
} |
163 |
|
|
164 |
setEnabled(table.isEnabled()); |
setEnabled(table.isEnabled()); |
165 |
setFont(table.getFont()); |
setFont(table.getFont()); |