Theme Editor: on macOS use apple.awt.fullWindowContent and apple.awt.transparentTitleBar

This commit is contained in:
Karl Tauber
2022-05-05 13:20:23 +02:00
parent c3b9dc397d
commit 14932d3f07
3 changed files with 25 additions and 2 deletions

View File

@@ -105,8 +105,9 @@ class DemoFrame
toolBar.add( Box.createHorizontalStrut( 70 ), 0 );
}
// enable full screen mode for this window
getRootPane().putClientProperty( "apple.awt.fullscreenable", true );
// enable full screen mode for this window (for Java 8 - 10; not necessary for Java 11+)
if( !SystemInfo.isJava_11_orLater )
getRootPane().putClientProperty( "apple.awt.fullscreenable", true );
}
// integrate into macOS screen menu