File tree 1 file changed +8
-1
lines changed
Ghidra/Framework/Docking/src/main/java/docking/widgets/table
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -105,10 +105,17 @@ public void paint(Graphics g) {
105
105
106
106
updateClipping ();
107
107
108
+ // Note: we should not have to set the colors here. That is usually done by the renderer
109
+ // when getTableCellRendererComponent() is called. Some Lafs, like the FlatLaf will change
110
+ // colors when painting, after the renderer component has been configured. To support that,
111
+ // we must update the colors here as well.
112
+ rendererComponent .setBackground (getBackground ());
113
+ rendererComponent .setForeground (getForeground ());
114
+
108
115
rendererComponent .paint (g );
109
116
110
117
// paint our items after the delegate call so that we paint on top
111
- super . paint (g );
118
+ paintChildren (g );
112
119
}
113
120
114
121
private void updateClipping () {
You can’t perform that action at this time.
0 commit comments