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

Solaris and win32 differ in the way windowActivated() gets called (focus issue)

XMLWordPrintable

    • sparc
    • solaris_2.5

      On win32, a setVisible() call causes a windowActivated() method to be called if the frame is registered as a windowListener. While on Solaris, windowActivated() is called only when the frame gains focus.

      In HJ, the frame is registered as a listener for Window events and when windowActivated() is called, we want to set focus to the type-in textfield.
      On windows, this caused severe problems when the frame was cloned and we moved focus back to the original frame. Both frames would continuously vie for focus locking up the browser windows. THis was beacuse on win32, a setVisible() call (which was made when the clone frame is created) turns around and calls windowActivated(). On solaris, windowActivated() was called only when the frame
      received focus which seems like the correct thing to do.

            son Oleg Sukhodolsky (Inactive)
            mminasan Malini Minasandram
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: