Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8267512

JFileChooser freezes when receiving a file drop.

    XMLWordPrintable

    Details

      Description

      ADDITIONAL SYSTEM INFORMATION :
      Microsoft Windows 10 Enterprise
      10.0.18363 Build 18363
      JDK 1.8.0_281
      JDK 1.8.0_291

      A DESCRIPTION OF THE PROBLEM :
      Launch a JFileChooser dialog on Windows 10. Drag and drop a file (shortcut or a file icon) from desktop onto the dialog. The dialog freezes.

      REGRESSION : Last worked in version 8

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Compile and run the sample with above JDK/JRE on Windows 10.
      Drag and drop a file onto the dialog.
      The dialog freezes.


      ---------- BEGIN SOURCE ----------
      import javax.swing.JFileChooser;
      import javax.swing.SwingUtilities;

      public class Test
      {
         public static void main(String[] args) throws Exception
         {
            SwingUtilities.invokeLater(new Runnable()
            {
               @Override
               public void run()
               {
                  JFileChooser fileChooser = new JFileChooser();
                  fileChooser.showOpenDialog(null);
               }
            });
         }
      }

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      The issue has not occurred when running JRE 1.8.0_271 or earlier, but I could be wrong.

      FREQUENCY : often


        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pnarayanaswa Praveen Narayanaswamy
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: