Make jframe for mac

broken image

tLookAndFeel(UIManager.getSystemLookAndFeelClassName())

broken image

if you want the look and feel to be as Mac-like as possible you also need this line of code: What the heck, while I'm here I'll cover it all. As I mentioned in an earlier posting, you also need this line of code to put the Java JMenuBar on the Mac OS X menubar: tProperty('.', 'WikiTeX') įor a Java application running on Mac OS X (a 'Mac Java' application), this sets the name of the main menu on the Mac menubar to 'WikiTeX', which happens to be the current name of my editor.

broken image

Just looking through some old code for a Java/Swing editor I started writing years ago, I saw this line of code that I added specifically for the Mac OS X platform: