From 3ee6a4830ea8393054fe7a3496dc7ca207c4d384 Mon Sep 17 00:00:00 2001 From: KasumiNova <3044344887@qq.com> Date: Tue, 27 Sep 2022 13:52:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=B0=E5=BB=BA=E7=9A=84?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E7=AB=AF=E5=AE=9E=E4=BE=8B=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=A2=AB=20=E5=88=A0=E9=99=A4/=E9=87=8D=E7=BD=AE=20=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/github/kasuminova/balloonserver/BalloonServer.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/github/kasuminova/balloonserver/BalloonServer.java b/src/main/java/github/kasuminova/balloonserver/BalloonServer.java index 128cbe5..8ca68f8 100644 --- a/src/main/java/github/kasuminova/balloonserver/BalloonServer.java +++ b/src/main/java/github/kasuminova/balloonserver/BalloonServer.java @@ -65,7 +65,7 @@ public class BalloonServer { public static final List availableCustomServerInterfaces = Collections.synchronizedList(new ArrayList<>()); private static void init() { //大小设置 - MAIN_FRAME.setSize(1350,785); + MAIN_FRAME.setSize(1350,780); MAIN_FRAME.setMinimumSize(new Dimension((int) (MAIN_FRAME.getWidth() * 0.8), MAIN_FRAME.getHeight())); //标签页配置 @@ -228,6 +228,7 @@ private static void loadMenuBar() { LittleServer customServer = new LittleServer(serverName, false); + availableCustomServerInterfaces.add(customServer.getServerInterface()); SERVER_TABBED_PANE.addTab(serverName, CUSTOM_SERVER_ICON, customServer.getPanel()); SERVER_TABBED_PANE.setSelectedIndex(SERVER_TABBED_PANE.getTabCount() - 1); @@ -376,7 +377,7 @@ private static boolean checkSameServer(String serverName) { */ private static void loadStatusBar() { //状态栏 - STATUS_PANEL.setBorder(new CompoundBorder(new LineBorder(Color.DARK_GRAY), new EmptyBorder(4, 4, 4, 4))); + STATUS_PANEL.setBorder(new CompoundBorder(new LineBorder(Color.DARK_GRAY), new EmptyBorder(2, 4, 2, 4))); JLabel threadCount = new JLabel("当前运行的线程数量:0"); STATUS_PANEL.add(threadCount, BorderLayout.WEST); //线程数监控 + 内存监控