Browse Source

INO-21074 模板数据集-sql预览数据靠右对齐

persist/11.0-arabic
obo 4 months ago
parent
commit
5f56cc8365
  1. 12
      designer-base/src/main/java/com/fr/design/data/datapane/preview/CopyableJTable.java

12
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);
}

Loading…
Cancel
Save