On Wed, 4 Dec 2024 18:14:58 GMT, Kevin Rushforth <k...@openjdk.org> wrote:

>> One can extend `PopupWindow` and call the protected `setScene()`, so this is 
>> a valid scenario, I think.
>
> PopupWindow already specifies that subclasses should not do this:
> 
> 
> Note to subclasses: the scene used by PopupWindow is very specifically 
> managed by PopupWindow. This method is overridden to throw 
> UnsupportedOperationException. You cannot specify your own scene.
> 
> 
> So no, it is not a valid use case.

More to the point, the `setScene` method is final in `PopupWindow` and will 
unconditionally throw `UnsupportedOperationException`

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/1634#discussion_r1870085558

Reply via email to