From bf8115189a29a73f349b8f5cf10c3fc25279395a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Levy=2EXie-=E8=A7=A3=E5=AE=89=E6=A3=AE?= Date: Mon, 19 Aug 2024 16:44:15 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-131194=20=E6=99=BA=E8=83=BD=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E8=A1=A8=E5=A4=B4UI=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fr/design/cell/smartaction/SmartJTablePane.java | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) 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 df63556e9f..b59e3d6ead 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 @@ -12,6 +12,7 @@ import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionListener; import javax.swing.table.AbstractTableModel; +import com.fr.design.gui.itable.FineUITable; import com.fr.design.layout.FRGUIPaneFactory; import com.fr.design.dialog.BasicDialog; import com.fr.design.dialog.BasicPane; @@ -24,8 +25,7 @@ import com.fr.design.selection.SelectionListener; * SmartJTablePane用于在Grid上面选单元格时编辑JTable */ public abstract class SmartJTablePane extends BasicPane { - private static final String UI_CLASS_ID = "TableHeaderUI"; - + public static final int OK = 0; public static final int CANCEL = 1; @@ -35,7 +35,7 @@ public abstract class SmartJTablePane extends BasicPane { protected SelectionListener gridSelectionChangeL; protected SmartJTablePaneAction action; - protected JTable table; + protected FineUITable table; protected JScrollPane scrollPane; protected boolean old_editable = true; @@ -58,7 +58,7 @@ public abstract class SmartJTablePane extends BasicPane { this.add(new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_RWA_Click_Cell_To_Edit_Value")), BorderLayout.NORTH); // BasicPane的center放JTable - table = new JTable(model); + table = new FineUITable(model); this.add(scrollPane = new UITableScrollPane(table), BorderLayout.CENTER); // 鼠标切换选中项时,editingRowIndex也要跟着变 @@ -117,9 +117,4 @@ public abstract class SmartJTablePane extends BasicPane { return dlg; } - @Override - public String getUIClassID() { - return UI_CLASS_ID; - } - }