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

[macos] support full window content options

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P3
    • Resolution: Approved
    • Fix Version/s: 11-pool
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Compatibility Kind:
      behavioral
    • Compatibility Risk:
      minimal
    • Compatibility Risk Description:
      Minimal risk as these are client properties never before used and their names are apple and AWT specific.
    • Interface Kind:
      Other
    • Scope:
      JDK

      Description

      Summary

      Two new client properties are recognized by the AWT on macOS. Same change as original fix made in JDK 12 (JDK-8212549).

      Problem

      The goal is to support two window-related features of the macOS platform.

      Solution

      Extend the macOS AWT to recognize two new client properties on the root panes of windows.

      Specification

      The new properties follow the format of some existing properties:

      "apple.awt.fullWindowContent"
      "apple.awt.transparentTitleBar"

      See CPlatformWindow.java for a complete list.

      Note that none of these properties are documented as they are not associated with a public class or interface.

      These client properties correspond to boolean attributes of native windows. The client property is transferred directly to the native window. Full window content means the content view occupies the full window, including the space under the native title bar (whose background is normally translucent). In Swing, the content view is the root pane. When full window content is enabled, the default window insets are removed and the root pane is expanded to the full window size. Transparent title bar causes the title bar to avoid painting any background. The attached screen shot shows an example.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                serb Sergey Bylokhov
                Reporter:
                alans Alan Snyder
                Reviewed By:
                Philip Race
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: