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

[macosx] setAlwaysOnTop doesn't work when Flash applications are in FullScreen

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 7u4, 8
    • client-libs
    • 7u4
    • os_x

      FULL PRODUCT VERSION :
      1.7.0_07

      ADDITIONAL OS VERSION INFORMATION :
      Mac OS 10.7
      Mac OS 10.8

      A DESCRIPTION OF THE PROBLEM :
      I set my JFrame to always be on top. If an Adobe Flash application/movie is set to FullScreen, the JFrame is no longer on top.

      This works fine in Java 1.6 for Mac. It also works fine on Java 1.7 for Windows.

      REGRESSION. Last worked in version 6u31

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Create a JFrame
      2. Use the setAlwaysOnTop(true) function to set the frame to always be on top
      3. Execute the application
      4. Go to You Tube and play a video
      5. Put the video in Full Screen

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The JFrame is still on top of the you tube video
      ACTUAL -
      The JFrame is hidden (underneath the you tube video)

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import javax.swing.*;

      public class SandBox {

          public static void main(String[] args) {
              JFrame frame = new JFrame();
              frame.setSize(400, 400);
              frame.setVisible(true);
              frame.setAlwaysOnTop(true);
          }
      }

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      None. I even tried spawning a thread that repeatedly called frame.setAlwaysOnTop(true);

      Just to see if that would help. It doesn't.

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: