Version: 3.3.4 Update

This commit is contained in:
gh0stkey
2024-10-14 16:35:20 +08:00
parent 910658f2e0
commit 6014089594
2 changed files with 6 additions and 5 deletions

View File

@@ -73,10 +73,6 @@ public class Datatable extends JPanel {
}
});
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 class Datatable extends JPanel {
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();