sdk
sdk copied to clipboard
Why screen recording?
When I launch the SDK, the system will notify me that java would like to recoding my screen and ask for permission. what does this recording used for?
SDK v3.3.0-beta1-sdk1 macOS Catalina 10.15.3
I don't know, you can safely Deny this, I guess. I have no clue where this comes from, maybe from Netbeans?
More info, the dialog shows at the first time I popup a context menu over any widgets, and it will happen again next time I startup the SDK. It's annoying, please pay some attention on this issue, I guess it's from some bundled plugins because the Netbeans 11 that I installed never showed up this dialog.
Without actually looking at the code, my guess is that this is related to the way popups (at the JVM level) have to be configured in order to show up over native rendering like an OpenGL window. By default, popups are rendered in such a way that they won't get rendered on top of the OpenGL window.
My guess is that when using the native mode or whatever allows them to be rendered over another window that maybe Swing wants to screencap what's behind the popup. Maybe to support transparency or round borders or whatever. Just a guess, though.
on mac.
- launch profiler like visualvm.
- launch sdk.
- connect profiler to sdk, and start cpu sampler.
- open any context menu on sdk. the security warning occure.
- wait few minutes.
- stop cpu sampler, and search method that consume long time.