mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 06:27:13 -06:00
Demo on macOS: enabled screen menu bar by default, except if explicitly disabled
This commit is contained in:
@@ -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( () -> {
|
||||
|
||||
Reference in New Issue
Block a user