Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use ScenicView to inspect Subwindows (ContextMenus, PopupControls, etc)

Using ScenicView, I want to be able to inspect things like ContextMenus or the insides of a ComboBox, but (as they should) they disappear before said inspection can happen:

Unable to inspect using ScenicView

Apart from changing the behavior of each control to not disappear, is there a way to freeze things so that these kind of controls can be inspected with SceneBuilder?

Here's a SSCCE, to give anyone willing a jump start.

like image 793
Brad Turek Avatar asked Nov 07 '22 15:11

Brad Turek


1 Answers

I realize this is old but I also ran into this issue. I have a partial answer:

contextMenu.autoHideProperty().set(false);

Will make it so that the menu stays up. But, it seems that ScenicView will refuse to actually inspect the menu...

There is an bug inside SecenicView which is why it does not inspect the SubWindows.

https://github.com/JonathanGiles/scenic-view/issues/18

like image 160
Meneleus Avatar answered Dec 10 '22 14:12

Meneleus