Hi all,
I'm currently developing my very first "professional" software that actually does something useful. The head-OS is macintosh. Everything I've done so far is promising (according to me), but something annoys me, see. It doesn't have a native look and feel, it looks cross-platformed and weird. The most visual damage is the JMenuBar. It is displayed on the frame (http://alvinalexander.com/apple/mac/.../1-initial.jpg), meanwhile, other programs have their JMenuBars at the top of the screen (https://developer.apple.com/library/.../file_menu.jpg). I tried the Java Development Guide for Mac (https://developer.apple.com/library/...velopment.html), but I was greeted with an annotation saying it was deprecated. I also tried the Maven Plugin, but I have no idea where and how to start. I tried typing actual code too, like:Andjava -Dapple.laf.useScreenMenuBar="true" com.example.yourAppBut none worked. I also tried to get into info.plist stuff, how do I integrate Java with .plist? I feel extremely hopeless. What should I do? how did YOU tackle this when trying to create a native Mac software? Thank you.System.setProperty("apple.laf.useScreenMenuBar", "true");
NOTE: I DID IT! AFTER 9 HOURS OF SEARCHES! ALL YOU HAVE TO DO IN ORDER TO MODIFY THE JMENUBAR IS TO SIMPLY TYPE THE FOLLOWING INTO THE MAIN:String os = System.getProperty("os.name").toLowerCase(); if(os.indexOf("mac") >= 0) { System.setProperty("apple.laf.useScreenMenuBar", "true"); }