209 |
|
|
210 |
protected void uninstallDefaults() |
protected void uninstallDefaults() |
211 |
{ |
{ |
212 |
table.setFont(null); |
// TODO: this method used to do the following which is not |
213 |
table.setGridColor(null); |
// quite right (at least it breaks apps that run fine with the |
214 |
table.setForeground(null); |
// JDK): |
215 |
table.setBackground(null); |
// |
216 |
table.setSelectionForeground(null); |
// table.setFont(null); |
217 |
table.setSelectionBackground(null); |
// table.setGridColor(null); |
218 |
|
// table.setForeground(null); |
219 |
|
// table.setBackground(null); |
220 |
|
// table.setSelectionForeground(null); |
221 |
|
// table.setSelectionBackground(null); |
222 |
|
// |
223 |
|
// This would leave the component in a corrupt state, which is |
224 |
|
// not acceptable. A possible solution would be to have component |
225 |
|
// level defaults installed, that get overridden by the UI defaults |
226 |
|
// and get restored in this method. I am not quite sure about this |
227 |
|
// though. / Roman Kennke |
228 |
} |
} |
229 |
|
|
230 |
protected void uninstallKeyboardActions() |
protected void uninstallKeyboardActions() |