From 60140895941f6781087263b938cc21b74cc3aabb Mon Sep 17 00:00:00 2001 From: gh0stkey <24655118+gh0stkey@users.noreply.github.com> Date: Mon, 14 Oct 2024 16:35:20 +0800 Subject: [PATCH] Version: 3.3.4 Update --- src/main/java/hae/HaE.java | 2 +- src/main/java/hae/component/board/table/Datatable.java | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/hae/HaE.java b/src/main/java/hae/HaE.java index df6ee25..afd711b 100644 --- a/src/main/java/hae/HaE.java +++ b/src/main/java/hae/HaE.java @@ -18,7 +18,7 @@ public class HaE implements BurpExtension { @Override public void initialize(MontoyaApi api) { // 设置扩展名称 - String version = "3.3.3"; + String version = "3.3.4"; api.extension().setName(String.format("HaE (%s) - Highlighter and Extractor", version)); // 加载扩展后输出的项目信息 diff --git a/src/main/java/hae/component/board/table/Datatable.java b/src/main/java/hae/component/board/table/Datatable.java index f9dcdd3..0d8da66 100644 --- a/src/main/java/hae/component/board/table/Datatable.java +++ b/src/main/java/hae/component/board/table/Datatable.java @@ -73,10 +73,6 @@ public int compare(Integer s1, Integer s2) { } }); - dataTable.setRowSorter(sorter); - TableColumn idColumn = dataTable.getColumnModel().getColumn(0); - idColumn.setMaxWidth(50); - for (String item : dataList) { if (!item.isEmpty()) { addRowToTable(new Object[]{item}); @@ -125,6 +121,11 @@ public void changedUpdate(DocumentEvent e) { JScrollPane scrollPane = new JScrollPane(dataTable); scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); + dataTable.setRowSorter(sorter); + TableColumn idColumn = dataTable.getColumnModel().getColumn(0); + idColumn.setPreferredWidth(50); + idColumn.setMaxWidth(100); + setLayout(new BorderLayout(0, 5)); JPanel optionsPanel = new JPanel();