Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Commit

Permalink
修复新建的服务端实例无法被 删除/重置 的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
KasumiNova committed Sep 27, 2022
1 parent 844d80b commit 3ee6a48
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public class BalloonServer {
public static final List<LittleServerInterface> 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()));

//标签页配置
Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);
//线程数监控 + 内存监控
Expand Down

0 comments on commit 3ee6a48

Please sign in to comment.