adoptium / adoptium/adoptium-support
Dragging desktop file into a JPanel causes the application and Windows 10 desktop to freeze
- Dominant language
- No language data
- Stars
- 59
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
This is as of AdoptOpenJDK 11.0.10+9.
I tried with 11.0.6+10 and 11.0.9+11 and it works fine.
The problem still exists in 11.0.11+9.
We have an internal Swing application. I just received a jira on this problem yesterday. My users are all on 11.0.10+9.
We are all running Windows 10 64 bit.
I have two files on my desktop; one is an Excel file (xlsx) and the other is an Outlook message file (msg).
I open our java application, and then open a new Panel inside that. I switch between trying to drag each file into the application, and then the icon freezes inside the panel. It appears to be a problem painting the little red "O with a slash" that indicates that the panel is not a drop target. It not only freezes the java application, but the entire Windows desktop. As soon as I kill my java application, it all unfreezes.
I commented out all Drag and Drop code in the application, and the problem remains.
Please let me know if you need anymore detail
Sam
Contributor guide
Research direction
Start by reproducing the freeze on Windows 10 64-bit with the reported Swing JPanel scenario and AdoptOpenJDK versions 11.0.6+10, 11.0.9+11, 11.0.10+9, and 11.0.11+9. Compare behavior while dragging the Excel and Outlook files, including with the application's drag-and-drop code disabled; done means identifying the regression or a reproducible cause of the application and desktop freeze.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100