Skip to content

Commit 5276ae6

Browse files
author
Will Strei
committed
Fixed selection test popup sizing issue
1 parent 047213a commit 5276ae6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/burp/ExtractorEditor.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,17 @@ public void mouseClicked(MouseEvent e) {
8383
public void mouseClicked(MouseEvent e) {
8484
String matchResult = getTestRegexMatch();
8585
JPopupMenu popup = new JPopupMenu();
86+
JPanel menuPanel = new JPanel();
8687
JLabel contents = new JLabel();
8788
if (matchResult == null) {
8889
contents.setText("Did not find a match for the defined start and end regex!");
8990
} else {
9091
contents.setText("Found match: " + matchResult);
9192
}
92-
contents.setBorder(BorderFactory.createEmptyBorder(4,4,4,4));
93-
popup.add(contents);
93+
contents.setBorder(BorderFactory.createEmptyBorder(0,4,0,4));
94+
menuPanel.setOpaque(false);
95+
menuPanel.add(contents);
96+
popup.add(menuPanel);
9497
popup.show(testRegexButton, 0, testRegexButton.getHeight());
9598
}
9699
});

0 commit comments

Comments
 (0)