Moving the Menubar to the Top of the Screen

    public static void main(String[] args) throws QTException {
        System.setProperty("apple.laf.useScreenMenuBar", "true");  
        System.setProperty("com.apple.eawt.CocoaComponent.CompatibilityMode", "false"); 
        // Need an empty hidden frame just for menu bar
        final PlayerFrame hidden = new PlayerFrame(true);
        // first frame is just for menu bar
        EventQueue.invokeLater(new Runnable() {
            public void run() {
                hidden.show();
            }
        });
    } 

Previous | Next | Top | Cafe con Leche

Copyright 2005, 2006 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified March 6, 2006