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

AWT should stop setting AppDelegate in case FX has already done it

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 22
    • client-libs
    • generic
    • os_x

      When investigating JDK-8318854, it was observed that AWT NSApp's setDelegate is called when Swing content is embedded in FX window. The expected behavior is that FX creates the NSApp and hence no AWT's applicationDelegate should be installed. But this is not the case as can be seen from the debug log.

      2023-11-01 12:25:40.243 java[92753:12085159] FX NSApplication initWithEnv()
      2023-11-01 12:25:40.262 java[92753:12085156] >>>> isEmbedded App ??? 0
      2023-11-01 12:25:40.279 java[92753:12085156] >>>> FX setDelegate called - IF BLOCK
      2023-11-01 12:25:40.564 java[92753:12085156] AWT ApplicationDelegate init()
      2023-11-01 12:25:40.565 java[92753:12085156] >> AWT OSXAPP_SetApplicationDelegate::setDelegate called >>>>

            honkar Harshitha Onkar
            honkar Harshitha Onkar
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: