RFR: 8288893: Popup and its subclasses cannot input text from InputMethod [v3]
Kevin Rushforth
kcr at openjdk.org
Wed Dec 4 18:34:44 UTC 2024
On Wed, 4 Dec 2024 18:14:58 GMT, Kevin Rushforth <kcr at 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
More information about the openjfx-dev
mailing list