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

Focus lost/gain events get lost when gaining focus on external CDE component

XMLWordPrintable

    • 03
    • x86, sparc
    • linux, solaris_8

      The bug locks up entire user screens over the time.
      The Swing application may loose the focus since a completely independent application gains it. The cursor in the origibal Swing textfield will still
      blink (it thinks it has a focus). This feature is already a bug (cosmetic).
      Gaining the focus back through <Alt><Tab> to the Swing application and clicking
      into another text field will not make the focus gain event being send to the
      new textfield component.

      The behaviour can be easily demonstrated by using the SwingSet application
      which comes through the package in the path /usr/demo/JAVA1.2/demo/jfc/SwingSet

      The bug may be reproduced by:
      1.) cd /usr/demo/JAVA1.2/demo/jfc/SwingSet
      2.) /usr/j2se/bin/java -jar SwingSet.jar
      3.) Pick tabbed pane >Labels<
      4.) Get focus on textfield >Type here< by clicking the mouse into it.
      5.) Enter abc
      6.) Gain focus on a dtterm by clicking on the the frame

      Error1: The cursor of the text field is still blinking.
      It has not got a focus lost event.
      7.) Gain focus on the swing application by using the key combination <ALT><TAB>

      8.) Click with mouse on text field <and here>

      Error2: Textfield >Type here< does not get a focus lost event since the cursor
      is still blinking
      Error3: The textfield >and here< does not get a focus gained event since no
      cursor pops up

      The field >and here< can be used for input
      Everything start getting messy: Two cursor are now blinking ...

      The real live application get screwed up since additional action like high lighting are being triggered the right way...


            dmikhalksunw Denis Mikhalkin (Inactive)
            stschnei Stefan Schneider (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: