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

XEmbed server doesn't get focused if embedded into applet

    Details

    • Subcomponent:
    • Introduced In Build:
      b01
    • Introduced In Version:
      6u1
    • Resolved In Build:
      b09
    • CPU:
      generic, x86
    • OS:
      linux, solaris
    • Verification:
      Verified

      Backports

        Description

        Consider the following hierarchy: there is an applet A plugged into Mozilla/Firefox browser. Inside the applet there is an AWT component C that implements XEmbed server specification (e. g. XEmbedCanvasPeer). Inside the component there is an XEmbed client S (e. g. StarOffice bean or XEmbeddedFrame).

        Then, consider the current focused component is some HTML element, while A is not focused. If I click on some component inside A with mouse, it successfully gets focused, while if I click on S it doesn't. At the same time I can tab in and out of S from/to C.
        The same problem may be reproduced in easier configuration: an applet with a single button. Set focus is on some HTML element other than applet, then click on some other window like terminal, and then click on a button inside the applet - the button doesn't get focused. Only the second mouse click makes it a focus owner.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  art Artem Ananiev
                  Reporter:
                  art Artem Ananiev
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: