JWrapper bundled OS-X no longer allows OS-X apps to display the menu bar at the top of the screen in true Apple style. Even when Apple look and feel for menu bar is specified with:
System.setProperty("apple.laf.useScreenMenuBar", "true");
or if jwrapper.xml file contains:
<JvmOptions>
<JvmOption>-Xmx1024m</JvmOption>
<JvmOption>-Dapple.laf.useScreenMenuBar=true</JvmOption>
</JvmOptions>
My test files is
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
public class Main {
static {
System.setProperty("apple.laf.useScreenMenuBar", "true");
}
public static void main(String[] args) {
JFrame frame = new JFrame("Menu Bar Demo");
JMenuBar bar = new JMenuBar();
JMenu fileMenu = new JMenu("File");
JMenu editMenu = new JMenu("Edit");
JMenu helpMenu = new JMenu("Help");
bar.add(fileMenu);
bar.add(editMenu);
bar.add(helpMenu);
frame.setSize(300, 150);
frame.setJMenuBar(bar);
frame.setVisible(true);
}
}
My jwrapper command line (and jwrapper version) are:
java -jar jwrapper-00034804310.jar jwrapper.xml
I am running on OS-X 10.9.5 and using Java 1.8.0_40 to build and run the app and also that is the version bundled with Jwrappered app