diff --git a/designer-realize/src/main/java/com/fr/design/webattr/WebJsPane.java b/designer-realize/src/main/java/com/fr/design/webattr/WebJsPane.java index fa5c92a7e5..5ac285eb0e 100644 --- a/designer-realize/src/main/java/com/fr/design/webattr/WebJsPane.java +++ b/designer-realize/src/main/java/com/fr/design/webattr/WebJsPane.java @@ -95,7 +95,7 @@ public class WebJsPane extends BasicPane { private void createNorthPane() { JPanel outnorth = new JPanel(new BorderLayout(0, 5)); JPanel firstnorth = new JPanel(new BorderLayout(0, 5)); - JPanel northPane = new JPanel(new FlowLayout(FlowLayout.LEFT,7,0)); + JPanel northPane = new JPanel(new FlowLayout(FlowLayout.LEADING,7,0)); northPane.add(localFileRadioButton); northPane.add(localText); northPane.add(chooseFile); @@ -106,7 +106,8 @@ public class WebJsPane extends BasicPane { firstnorth.add(infor1,BorderLayout.CENTER); JPanel secondnorth = new JPanel(new BorderLayout(0, 5)); - JPanel centerPane = new JPanel(new FlowLayout(FlowLayout.LEFT,7,0)); + JPanel centerPane = new JPanel(new FlowLayout(FlowLayout.LEADING,7,0)); + BidiUtils.applyOrientationByLocale(northPane, centerPane); centerPane.add(urlFileRadioButton); centerPane.add(urlText); centerPane.add(testConnection);