mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-12 15:07:11 -06:00
ProgressBar: fixed right-to-left painting
This commit is contained in:
@@ -93,7 +93,8 @@ public class FlatProgressBarUI
|
|||||||
|
|
||||||
g.setColor( progressBar.getForeground() );
|
g.setColor( progressBar.getForeground() );
|
||||||
((Graphics2D)g).fill( horizontal
|
((Graphics2D)g).fill( horizontal
|
||||||
? new RoundRectangle2D.Float( x, y, amountFull, height, arc, arc )
|
? new RoundRectangle2D.Float( c.getComponentOrientation().isLeftToRight() ? x : x + (width - amountFull),
|
||||||
|
y, amountFull, height, arc, arc )
|
||||||
: new RoundRectangle2D.Float( x, y + (height - amountFull), width, amountFull, arc, arc ) );
|
: new RoundRectangle2D.Float( x, y + (height - amountFull), width, amountFull, arc, arc ) );
|
||||||
|
|
||||||
if( progressBar.isStringPainted() )
|
if( progressBar.isStringPainted() )
|
||||||
|
|||||||
Reference in New Issue
Block a user