diff --git a/designer-base/src/main/java/com/fr/design/editor/editor/BooleanEditor.java b/designer-base/src/main/java/com/fr/design/editor/editor/BooleanEditor.java index af2589d455..73bc3a4144 100644 --- a/designer-base/src/main/java/com/fr/design/editor/editor/BooleanEditor.java +++ b/designer-base/src/main/java/com/fr/design/editor/editor/BooleanEditor.java @@ -3,6 +3,7 @@ */ package com.fr.design.editor.editor; +import com.fr.base.i18n.BidiUtils; import com.fr.design.gui.icheckbox.UICheckBox; import com.fr.design.layout.FRGUIPaneFactory; @@ -40,7 +41,7 @@ public class BooleanEditor extends Editor { public BooleanEditor(Boolean value) { this.setLayout(FRGUIPaneFactory.createBorderLayout()); booleanCheckBox = new UICheckBox("true"); - this.add(booleanCheckBox, BorderLayout.CENTER); + this.add(booleanCheckBox, BorderLayout.LINE_START); this.setValue(value); this.setName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Parameter_Boolean")); booleanCheckBox.addItemListener(new ItemListener() { @@ -49,6 +50,7 @@ public class BooleanEditor extends Editor { fireStateChanged(); } }); + BidiUtils.applyOrientationByLocale(this); } public JComponent getEditComp() { diff --git a/designer-base/src/main/java/com/fr/design/editor/editor/DateEditor.java b/designer-base/src/main/java/com/fr/design/editor/editor/DateEditor.java index c40161ba6c..9591255a37 100644 --- a/designer-base/src/main/java/com/fr/design/editor/editor/DateEditor.java +++ b/designer-base/src/main/java/com/fr/design/editor/editor/DateEditor.java @@ -3,6 +3,7 @@ */ package com.fr.design.editor.editor; +import com.fr.base.i18n.BidiUtils; import com.fr.design.gui.date.UIDatePicker; import com.fr.design.layout.FRGUIPaneFactory; import com.fr.general.GeneralContext; @@ -73,10 +74,11 @@ public class DateEditor extends Editor { } }); this.uiDatePicker.setFocusTraversalKeysEnabled(false); - this.add(uiDatePicker, BorderLayout.CENTER); + this.add(uiDatePicker, BorderLayout.LINE_START); this.setValue(value); this.setName(name); + BidiUtils.applyOrientationByLocale(this); } //uidatepicker的setstyle方法不起作用,先粗暴地加个构造方法