Tree: horizontally flip collapsedIcon in right-to-left component orientation

This commit is contained in:
Karl Tauber
2019-08-30 09:38:36 +02:00
parent c6ca9a48d2
commit 42ba5a8fee

View File

@@ -43,6 +43,9 @@ public class FlatTreeCollapsedIcon
arrow.lineTo( 10, 5.5 );
arrow.closePath();
if( !c.getComponentOrientation().isLeftToRight() )
g.rotate( Math.toRadians( 180 ), width / 2., height / 2. );
g.fill( arrow );
}
}