RFR: 8334593: Adding, removing and then adding a JFXPanel again leads to NullPointerException
Prasanta Sadhukhan
psadhukhan at openjdk.org
Mon Jul 1 05:49:24 UTC 2024
On Fri, 28 Jun 2024 14:12:37 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:
> To allow removing and then re-adding the `JFXPanel`, we would need to not call `Window.hide` when the `JFXPanel` is removed.
I am not sure if this is a problem as just as `JFXPanel.removeNotify` does `Window.hide` but at the same time when we add JFXPanel to frame, it calls `JFXPanel.addNotify` which does `Window.show` so tit gets hidden when JFXPanel is removed and shown when JFXPanel is added
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1493#issuecomment-2199284935
More information about the openjfx-dev
mailing list