Testing: FlatSingleComponentTest: revalidate and repaint when changing component orientation using Alt+R

This commit is contained in:
Karl Tauber
2021-09-13 10:11:09 +02:00
parent b283178979
commit 85fde46504

View File

@@ -139,6 +139,8 @@ public class FlatSingleComponentTest
applyComponentOrientation( getComponentOrientation().isLeftToRight() applyComponentOrientation( getComponentOrientation().isLeftToRight()
? ComponentOrientation.RIGHT_TO_LEFT ? ComponentOrientation.RIGHT_TO_LEFT
: ComponentOrientation.LEFT_TO_RIGHT ); : ComponentOrientation.LEFT_TO_RIGHT );
revalidate();
repaint();
}, },
KeyStroke.getKeyStroke( "alt R" ), KeyStroke.getKeyStroke( "alt R" ),
JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT ); JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT );