RFR: 8141391: DnD doesn't work for JFXPanel
Andy Goryachev
angorya at openjdk.org
Fri Jul 11 16:59:45 UTC 2025
On Fri, 11 Jul 2025 16:48:41 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> Yes, this the wrong approach. The javafx.swing module does not (and should not) depend on javafx.controls. Drag and Drop is a scene graph operation and can be targeted to any node, even nodes that are not Controls.
>
> a) Yes, couple of module-info file was changed but not pushed in
> b) I could use TextInputControl or the parent
>
> Any other suggestion as clearly we cannot use Scene.DragEvent return value?
What code path does it take when pasting from an FX component? Maybe we can look how it differs and try to redirect to that path, so the content gets pasted correctly.
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1843#discussion_r2201311812
More information about the openjfx-dev
mailing list