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

Drag n Drop of an unknown file type raises exception in Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • 1.4.0
    • client-libs
    • beta
    • x86
    • windows_nt
    • Verified

      Run the attached Java program and follow the steps given (note: this problem seems to only exist on Windows. On Solaris, it is popping up a dialog saying "Can't get file type"):

      1. Drag a file which doesn't have any extension from JFileChooser and drop on each of the JTextComponent available below JFileChooser.
      2. It will raise NullPointerException when the Drop target is either JTextArea or JTextField. It works fine for JTextPane and JEditorPane.

      Note : In Solaris, it is popping up a Dialog Box saying "Can't get file type".

            tprinzing Tim Prinzing (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: