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

Expose Keep-Above / Keep-Below Window Attributes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 7u6
    • javafx
    • None

      JavaFX lacks the ability to pin windows above/below other native windows (keep-above/keep-below). Exposing this capability would be a very useful addition to the api. It would enable developers to create the following types of applications: OSD notifications (keep-above), desktop widgets (keep-below), media players (keep-above), dock applications (keep-above/keep/below), and quake-style terminals (keep-above).

      In terms of implementation, GTK exposes gtk_window_set_keep_above and gtk_window_set_keep_below. Microsoft has SetWindowPos with HWND_BOTTOM and HWND_TOP flags. Mac has setLevel with kCGFloatingWindowLevel / kCGDesktopWindowLevel.

      On platforms that don't stack windows (mobile?), no-ops wouldn't hurt anything.

            kcr Kevin Rushforth
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: