From 85fde465041bbc127bd5dac5e4265100c86fe264 Mon Sep 17 00:00:00 2001 From: Karl Tauber Date: Mon, 13 Sep 2021 10:11:09 +0200 Subject: [PATCH] Testing: FlatSingleComponentTest: revalidate and repaint when changing component orientation using `Alt+R` --- .../com/formdev/flatlaf/testing/FlatSingleComponentTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flatlaf-testing/src/main/java/com/formdev/flatlaf/testing/FlatSingleComponentTest.java b/flatlaf-testing/src/main/java/com/formdev/flatlaf/testing/FlatSingleComponentTest.java index 2465c478..050a15be 100644 --- a/flatlaf-testing/src/main/java/com/formdev/flatlaf/testing/FlatSingleComponentTest.java +++ b/flatlaf-testing/src/main/java/com/formdev/flatlaf/testing/FlatSingleComponentTest.java @@ -139,6 +139,8 @@ public class FlatSingleComponentTest applyComponentOrientation( getComponentOrientation().isLeftToRight() ? ComponentOrientation.RIGHT_TO_LEFT : ComponentOrientation.LEFT_TO_RIGHT ); + revalidate(); + repaint(); }, KeyStroke.getKeyStroke( "alt R" ), JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT );