PortSwigger / burp-extensions-montoya-api

Burp Extensions Api
Other
125 stars 3 forks source link

Tab components are not rendered #3

Closed Saduff closed 1 year ago

Saduff commented 1 year ago

I compiled the MultiApiExample.java and loaded it in Burp. The "My Suite Tab" is added, but the tab is empty, no components are rendered.

---------------------------------------------------------------------------------------------------------
BURP PROPERTIES
---------------------------------------------------------------------------------------------------------
Burp Version                     2022.9.3
Build Number                     16600
Update Channel                   Early-Adopter
Saduff commented 1 year ago

I found the problem. The MySuiteTab component is missing a layout manager. Adding for example this as the first line in the constructor fixes it:

setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));
SeanBurnsUK commented 1 year ago

Thanks for the feedback.

We are actively working on the examples, and there will be many updates in the future. We will include your suggestion to improve the example.

Hannah-PortSwigger commented 1 year ago

8 This change was implemented

https://github.com/PortSwigger/burp-extensions-montoya-api/blob/9e52e323f68925335ad4cc662ef2bee3e934278c/examples/src/main/java/net/portswigger/burp/extensions/multiapi/MultiApiExample.java#L77