From 1659a0987c1395622b348c945599f5ef34b779ed Mon Sep 17 00:00:00 2001 From: Hannah Law Date: Mon, 8 Jan 2024 17:35:25 +0000 Subject: [PATCH] #10 Add resize weight to table. --- build.gradle | 2 +- src/main/java/ui/attack/WebSocketAttackPanel.java | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 6439878..cfa1348 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ plugins { } group = 'net.portswigger' -version = '1.1.1' +version = '1.1.2' repositories { mavenLocal() diff --git a/src/main/java/ui/attack/WebSocketAttackPanel.java b/src/main/java/ui/attack/WebSocketAttackPanel.java index 055eeeb..d005ad9 100644 --- a/src/main/java/ui/attack/WebSocketAttackPanel.java +++ b/src/main/java/ui/attack/WebSocketAttackPanel.java @@ -51,7 +51,11 @@ private Component getWebSocketMessageDisplay() JSplitPane webSocketInformationDisplay = new JSplitPane(JSplitPane.VERTICAL_SPLIT, webSocketMessageEditor.uiComponent(), upgradeRequestEditor.uiComponent()); webSocketInformationDisplay.setResizeWeight(0.5); - return new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, getWebSocketMessageTable(webSocketMessageEditor, upgradeRequestEditor), webSocketInformationDisplay); + + JSplitPane attackPanelSplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, getWebSocketMessageTable(webSocketMessageEditor, upgradeRequestEditor), webSocketInformationDisplay); + attackPanelSplitPane.setResizeWeight(0.5); + + return attackPanelSplitPane; } private Component getWebSocketMessageTable(WebSocketMessageEditor webSocketMessageEditor, HttpRequestEditor upgradeRequestEditor)