From a3fe79e605b07a5a908599aaa830a0860e9423d2 Mon Sep 17 00:00:00 2001 From: jinlin <jinlin> Date: 星期三, 14 五月 2025 17:34:27 +0800 Subject: [PATCH] 修改 --- src/main/java/com/example/client/service/StatisReportsService.java | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/example/client/service/StatisReportsService.java b/src/main/java/com/example/client/service/StatisReportsService.java index 0a8033f..20551da 100644 --- a/src/main/java/com/example/client/service/StatisReportsService.java +++ b/src/main/java/com/example/client/service/StatisReportsService.java @@ -114,8 +114,7 @@ private void reportRecord(int column, Long level1NetworkId,Long teamgroupId) { JFrame frame1 = new JFrame("璁板綍"); - frame1.setSize(500, 400); - frame1.setResizable(false); + frame1.setSize(1000, 500); frame1.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); frame1.setLocationRelativeTo(null); frame1.setVisible(true); @@ -124,9 +123,9 @@ List<ColumnDto> columnDto = new ArrayList<>(); //columnDto.add(new ColumnDto("ID", "id", -1, null,false)); - columnDto.add(new ColumnDto("搴忓彿", "", (500 - 10) / 3, "autoCreate", false, null, null)); - columnDto.add(new ColumnDto("璁惧鍚嶇О", "name", (500 - 10) / 3, null, false, null, null)); - columnDto.add(new ColumnDto("鑺傜偣鍚嶇О", "processName", (500 - 10) / 3, null, false, null, null)); + columnDto.add(new ColumnDto("搴忓彿", "", 50, "autoCreate", false, null, null)); + columnDto.add(new ColumnDto("璁惧鍚嶇О", "name", 770, null, false, null, null)); + columnDto.add(new ColumnDto("鑺傜偣鍚嶇О", "processName", 160, null, false, null, null)); JTable table = CommonTable.createCommonTable(list, columnDto); table.setRowHeight(25); @@ -136,7 +135,7 @@ JScrollPane scrollPane = new JScrollPane(table, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS); scrollPane.setViewportView(table); scrollPane.getViewport().setBackground(Color.WHITE); - scrollPane.setPreferredSize(new Dimension(500 - 20, 400)); + scrollPane.setPreferredSize(new Dimension(1000 - 20, 400)); frame1.add(scrollPane); } -- Gitblit v1.9.1