From b5c4e807b65d01928844a7aee8d0abd29aa68f4e Mon Sep 17 00:00:00 2001 From: lemon Date: Tue, 6 Aug 2024 16:36:01 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-127437=20fix:=E6=89=93=E5=8C=85=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/fr/design/write/submit/DBManipulationPane.java | 3 +-- .../java/com/fr/design/cell/smartaction/SmartJTablePane.java | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/write/submit/DBManipulationPane.java b/designer-base/src/main/java/com/fr/design/write/submit/DBManipulationPane.java index 57e24e1fe2..b9aad8551e 100644 --- a/designer-base/src/main/java/com/fr/design/write/submit/DBManipulationPane.java +++ b/designer-base/src/main/java/com/fr/design/write/submit/DBManipulationPane.java @@ -55,7 +55,6 @@ import com.fr.write.config.DeleteConfig; import com.fr.write.config.InsertConfig; import com.fr.write.config.IntelliDMLConfig; import com.fr.write.config.UpdateConfig; -import sun.swing.table.DefaultTableCellHeaderRenderer; import javax.swing.AbstractCellEditor; import javax.swing.BorderFactory; @@ -174,7 +173,7 @@ public class DBManipulationPane extends BasicBeanPane { keyColumnValuesTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); keyColumnValuesTable.setPreferredScrollableViewportSize(FineUIScale.scale(new Dimension(280, 150))); keyColumnValuesTable.setShowHorizontalLines(true); - DefaultTableCellHeaderRenderer headerRenderer = new DefaultTableCellHeaderRenderer(); + DefaultTableCellRenderer headerRenderer = new DefaultTableCellRenderer(); headerRenderer.setHorizontalAlignment(SwingConstants.LEFT); keyColumnValuesTable.getTableHeader().setDefaultRenderer(headerRenderer); diff --git a/designer-realize/src/main/java/com/fr/design/cell/smartaction/SmartJTablePane.java b/designer-realize/src/main/java/com/fr/design/cell/smartaction/SmartJTablePane.java index 4d9ef68670..c55f9a6974 100644 --- a/designer-realize/src/main/java/com/fr/design/cell/smartaction/SmartJTablePane.java +++ b/designer-realize/src/main/java/com/fr/design/cell/smartaction/SmartJTablePane.java @@ -11,6 +11,7 @@ import javax.swing.SwingConstants; import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionListener; import javax.swing.table.AbstractTableModel; +import javax.swing.table.DefaultTableCellRenderer; import com.fr.design.layout.FRGUIPaneFactory; import com.fr.design.dialog.BasicDialog; @@ -19,7 +20,6 @@ import com.fr.design.dialog.DialogActionListener; import com.fr.design.mainframe.ElementCasePane; import com.fr.design.selection.SelectionListener; -import sun.swing.table.DefaultTableCellHeaderRenderer; /* * SmartJTablePane用于在Grid上面选单元格时编辑JTable @@ -73,7 +73,7 @@ public abstract class SmartJTablePane extends BasicPane { } } }); - DefaultTableCellHeaderRenderer headerRenderer = new DefaultTableCellHeaderRenderer(); + DefaultTableCellRenderer headerRenderer = new DefaultTableCellRenderer(); headerRenderer.setHorizontalAlignment(SwingConstants.LEFT); table.getTableHeader().setDefaultRenderer(headerRenderer);