mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-10-19 18:12:14 -09:00
Merge remote-tracking branch 'origin/GP-1-dragonmacher-fixed-flatlaf-table-header-hover-painting'
This commit is contained in:
@@ -105,10 +105,17 @@ public class GTableHeaderRenderer extends DefaultTableCellRenderer {
|
||||
|
||||
updateClipping();
|
||||
|
||||
// Note: we should not have to set the colors here. That is usually done by the renderer
|
||||
// when getTableCellRendererComponent() is called. Some Lafs, like the FlatLaf will change
|
||||
// colors when painting, after the renderer component has been configured. To support that,
|
||||
// we must update the colors here as well.
|
||||
rendererComponent.setBackground(getBackground());
|
||||
rendererComponent.setForeground(getForeground());
|
||||
|
||||
rendererComponent.paint(g);
|
||||
|
||||
// paint our items after the delegate call so that we paint on top
|
||||
super.paint(g);
|
||||
paintChildren(g);
|
||||
}
|
||||
|
||||
private void updateClipping() {
|
||||
|
||||
Reference in New Issue
Block a user