From 5f56cc83658b58b1e84c94a0e3201beb208ec1c6 Mon Sep 17 00:00:00 2001 From: obo Date: Thu, 15 Aug 2024 22:19:23 +0800 Subject: [PATCH] =?UTF-8?q?INO-21074=20=E6=A8=A1=E6=9D=BF=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E9=9B=86-sql=E9=A2=84=E8=A7=88=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E9=9D=A0=E5=8F=B3=E5=AF=B9=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../design/data/datapane/preview/CopyableJTable.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/data/datapane/preview/CopyableJTable.java b/designer-base/src/main/java/com/fr/design/data/datapane/preview/CopyableJTable.java index a452a4d371..59273c0ce2 100644 --- a/designer-base/src/main/java/com/fr/design/data/datapane/preview/CopyableJTable.java +++ b/designer-base/src/main/java/com/fr/design/data/datapane/preview/CopyableJTable.java @@ -1,17 +1,21 @@ package com.fr.design.data.datapane.preview; +import com.fr.base.i18n.BidiUtils; import com.fr.design.base.clipboard.ClipboardHelper; import com.fr.design.gui.itable.SortableJTable; import com.fr.design.gui.itable.TableSorter; import com.fr.log.FineLoggerFactory; import com.fr.stable.os.OperatingSystem; -import javax.swing.*; -import javax.swing.table.DefaultTableCellRenderer; +import javax.swing.JComponent; +import javax.swing.JTable; import javax.swing.table.JTableHeader; import javax.swing.table.TableCellRenderer; import javax.swing.table.TableColumnModel; -import java.awt.*; +import java.awt.Color; +import java.awt.Component; +import java.awt.Point; +import java.awt.Toolkit; import java.awt.datatransfer.Clipboard; import java.awt.datatransfer.StringSelection; import java.awt.datatransfer.Transferable; @@ -214,7 +218,7 @@ public class CopyableJTable extends SortableJTable { } else { comp.setBackground(this.getBackground()); } - return comp; + return BidiUtils.applyOrientationByLocale(comp); }