Demo on macOS: enabled screen menu bar by default, except if explicitly disabled

This commit is contained in:
Karl Tauber
2020-06-08 14:29:47 +02:00
parent b9bd26b2fb
commit 9f81d147d1

View File

@@ -28,7 +28,8 @@ public class FlatLafDemo
static final String KEY_TAB = "tab";
public static void main( String[] args ) {
if( SystemInfo.IS_MAC )
// on macOS enable screen menu bar
if( SystemInfo.IS_MAC && System.getProperty( "apple.laf.useScreenMenuBar" ) == null )
System.setProperty( "apple.laf.useScreenMenuBar", "true" );
SwingUtilities.invokeLater( () -> {