mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 22:10:54 +03:00
Tree: removed unused method parameter; reported by Error Prone in commit d388158de7
Some checks failed
CI / build (11) (push) Has been cancelled
CI / build-on (17, ) (push) Has been cancelled
CI / build-on (21, ) (push) Has been cancelled
CI / build-on (23, ) (push) Has been cancelled
CI / build-on (8, ) (push) Has been cancelled
CI / snapshot (push) Has been cancelled
CI / release (push) Has been cancelled
Some checks failed
CI / build (11) (push) Has been cancelled
CI / build-on (17, ) (push) Has been cancelled
CI / build-on (21, ) (push) Has been cancelled
CI / build-on (23, ) (push) Has been cancelled
CI / build-on (8, ) (push) Has been cancelled
CI / snapshot (push) Has been cancelled
CI / release (push) Has been cancelled
This commit is contained in:
@@ -659,7 +659,7 @@ public class FlatTreeUI
|
|||||||
? ((DefaultTreeCellRenderer)rendererComponent).getBackgroundSelectionColor()
|
? ((DefaultTreeCellRenderer)rendererComponent).getBackgroundSelectionColor()
|
||||||
: (hasFocus ? selectionBackground : selectionInactiveBackground);
|
: (hasFocus ? selectionBackground : selectionInactiveBackground);
|
||||||
|
|
||||||
paintRowSelection( g, selectionColor, rendererComponent, bounds, row, hasFocus, false );
|
paintRowSelection( g, selectionColor, rendererComponent, bounds, row, false );
|
||||||
} else {
|
} else {
|
||||||
// paint cell background if DefaultTreeCellRenderer.getBackgroundNonSelectionColor() is set
|
// paint cell background if DefaultTreeCellRenderer.getBackgroundNonSelectionColor() is set
|
||||||
if( rendererComponent instanceof DefaultTreeCellRenderer ) {
|
if( rendererComponent instanceof DefaultTreeCellRenderer ) {
|
||||||
@@ -678,7 +678,7 @@ public class FlatTreeUI
|
|||||||
// (this needs to be an extra step for rounded selection)
|
// (this needs to be an extra step for rounded selection)
|
||||||
if( isDropRow && isPaintSelection() ) {
|
if( isDropRow && isPaintSelection() ) {
|
||||||
paintRowSelection( g, UIManager.getColor( "Tree.dropCellBackground" ),
|
paintRowSelection( g, UIManager.getColor( "Tree.dropCellBackground" ),
|
||||||
rendererComponent, bounds, row, hasFocus, true );
|
rendererComponent, bounds, row, true );
|
||||||
}
|
}
|
||||||
|
|
||||||
// paint renderer
|
// paint renderer
|
||||||
@@ -692,7 +692,7 @@ public class FlatTreeUI
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void paintRowSelection( Graphics g, Color color, Component rendererComponent,
|
private void paintRowSelection( Graphics g, Color color, Component rendererComponent,
|
||||||
Rectangle bounds, int row, boolean hasFocus, boolean paintDropSelection )
|
Rectangle bounds, int row, boolean paintDropSelection )
|
||||||
{
|
{
|
||||||
// set selection color
|
// set selection color
|
||||||
Color oldColor = g.getColor();
|
Color oldColor = g.getColor();
|
||||||
|
|||||||
Reference in New Issue
Block a user