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

the validate pass (caused by reshaped windows) doesn't occur on dispatch thread

XMLWordPrintable

    • 1.1
    • generic
    • solaris_2.5
    • Not verified

      The new event model now causes all events to be posted to
      the event queue where a separate thread takes them off hte queue and
      dispatches them to client code.

      In order to prevent frequent deadlock, it is essential that all
      callbacks into client code (as a result of events) execute on this
      one dispatch thread.

      Currently, though, there is one area where this is not happneing
      properly: when a Window is reshaped (either programmatically or by
      the user). This reshape will generate a low-level reshape event in
      the native code which results in a call up into client-code to
      "validate" (relayout the contents of the newly sized window). This
      is very dangerous and must be changed so that this reshape event
      generates the proper ComponentEvent.RESIZED event which is placed on the
      event queue, where validate will be called properly from the dispatch
      thread.

            amfowler Anne Fowler (Inactive)
            amfowler Anne Fowler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: