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

[macos] support full window content options

XMLWordPrintable

    • behavioral
    • minimal
    • Minimal risk as these are client properties never before used and their names are apple and AWT specific.
    • Other
    • JDK

      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.

            serb Sergey Bylokhov
            alans Alan Snyder
            Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: