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

DnD object dropped is not the object removed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 1.4.2
    • 1.2.2, 1.4.1
    • client-libs
    • mantis
    • x86, sparc
    • generic, windows_nt

    Description



      Name: skT45625 Date: 04/27/2000


      Java version "1.2.2"
      Classic VM (build JDK-1.2.2-W, native threads, symcjit)

      While implementing DnD between two DnDLists (as in the tutorial example found
      http://web2.java.sun.com/docs/books/tutorial/dnd/sheetal.html). I noticed that
      I was somehow creating duplicate objects. After further investigation I found
      that if you click on an object in one list, (speed is the key here) immediately
      drag it over the other list (while moving in a diagonal direction), and release
      the mouse button, sometimes the object dropped is the one selected in the first
      list, but the object removed from the first list is not. This creates a
      duplicate of the selected object in the second list. An object is removed from
      the first list, but it is not the one selected.

      I thought this was something particular about my application of the DnD
      technology, but found that it also happens in the tutorial example mentioned
      above. This may be a timing problem that is only noticed on slower CPUs. I'm
      using a 233 Mhz Pentium II and had the problem.

      Can anyone else reproduce this error and if so, is there a work around?

      This is the second time I have submitted this bug. I didn't get a reply the
      first time.

      Thank you,
      SRGlasgow
      (Review ID: 104199)
      ======================================================================

      Attachments

        Issue Links

          Activity

            People

              dassunw Das Das (Inactive)
              skondamasunw Suresh Kondamareddy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: