From c9bc43f27d90e00919084ebdb713806d0f7eeb97 Mon Sep 17 00:00:00 2001 From: obo Date: Fri, 16 Aug 2024 15:29:03 +0800 Subject: [PATCH] =?UTF-8?q?INO-21074=20=E5=8F=82=E6=95=B0=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/fr/design/editor/editor/BooleanEditor.java | 4 +++- .../src/main/java/com/fr/design/editor/editor/DateEditor.java | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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方法不起作用,先粗暴地加个构造方法