JDK-8211248 : Create manual drag and drop tests for FX / Swing interop
  • Type: Bug
  • Component: javafx
  • Sub-Component: swing
  • Affected Version: openjfx11
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-09-27
  • Updated: 2019-01-26
  • Resolved: 2019-01-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
openjfx12Fixed
Related Reports
Relates :  
Description
We lack sufficient drag and drop tests for FX / Swing interop as discussed during the review of JDK-8195811 / JDK-8202199. We should create some simple tests in tests/manual (presuming that creating automated tests is too hard).
Comments
Changeset: 95c2792650ff Author: psadhukhan Date: 2019-01-11 11:21 +0530 URL: http://hg.openjdk.java.net/openjfx/jfx-dev/rt/rev/95c2792650ff
11-01-2019

Oh, I see now. I was used to seeing it on the left, since in the previous version when I expanded the window to be large, that's where it is. I see that it's actually there, but above the text box (it moves to the left side if you stretch the window). In any case, it looks fine now. +1
11-01-2019

I tried on ubuntu16.04 where I do not see the "Drag Me" clipping issue (attached screenshot Linux-screenshot.png). Where you are testing and can you provide a screenshot?
09-01-2019

As an aside, the new DragDropFromSwingComponentInSwingNodeTest porogram fails with GTK3, so I added that information as a comment to JDK-8211302, since it seems like it is related.
08-01-2019

The content still doesn't fit in DragDropOntoJavaFXControlInJFXPanelTest -- the "Drag Me" JLabel is clipped out.
08-01-2019

Modified webrev: http://cr.openjdk.java.net/~psadhukhan/fx/8211248/webrev.1/
08-01-2019

All three new files have white-space errors (two are DOS files, and there are TABS in at least two of them). I ran all three tests on Linux (I haven't tried it on other platforms). In addition to the fact that DragDropOntoJavaFXControlInJFXPanelTest doesn't pass (as you mention above), the content of the Swing panel is clipped; it looks like the panel isn't large enough.
07-01-2019

These test tests 1. Drag / drop onto a Swing component in a SwingNode 2. Drag / drop from a Swing component in a SwingNode 3. Drag / drop onto a JavaFX control in a JFXPanel with with DragDropOntoSwingComponentInSwingNodeTest.java, DragDropFromSwingComponentInSwingNodeTest.java and DragDropOntoJavaFXControlInJFXPanelTest.java respectively. DragDropOntoJavaFXControlInJFXPanelTest.java does not pass as of now due to JDK-8141391
19-12-2018

Request to review: http://cr.openjdk.java.net/~psadhukhan/fx/8211248/webrev.0/
19-12-2018