JMenu to the top of the screen

I'm currently making an application that can function on both a windows and make platform, and I was wondering does anyone know where they explain how to add the Menu Bar to the top of the screen on a mac?
[213 byte] By [blackmagea] at [2007-11-27 6:59:28]
# 1

My code looks like this, as it says in every example I've read but it doesn't work to no avail. Any suggestions?

MenuBar(){

vers = System.getProperty("os.name").toLowerCase();

if (vers.indexOf("mac") != -1)

{

//System.setProperty("apple.laf.useScreenMenuBar", "true");

System.setProperty ("com.apple.macos.useScreenMenuBar","true");

macFrame=new JFrame();

menu=new JMenuBar();

makeFileMenu();

makeEditMenu();

makeRecentMenu();

menu.add(fileMenu);

menu.add(editMenu);

menu.add(recentMenu);

macFrame.setJMenuBar(menu);

macFrame.setVisible(true);

}

blackmagea at 2007-7-12 18:50:04 > top of Java-index,Desktop,Core GUI APIs...
# 2
Don't know what examples you've read but this example is slightly different: http://www.oreillynet.com/pub/a/mac/2002/09/06/osx_java.html?page=2
camickra at 2007-7-12 18:50:04 > top of Java-index,Desktop,Core GUI APIs...