简体   繁体   中英

Java Mac OS X implementing a mac like preferences dialog

I am somewhat new to Java, and new to OS X programming. I have worked my way through several of the details of getting a Java app to look like a native Mac app. Now I am struggling with implementing a preferences dialog that looks "mac like".

I am working on Mountain Lion and Java SE 6. Is there a simple solution to this, or is it just working with JDialog and JToolbar, et. Al.?

Thank you Tim

Several things are worth noting in this regard:

  • Don't override the default Look & Feel , com.apple.laf.AquaLookAndFeel .

  • Do create a Mac applicaiton bundle, as suggested here .

  • Do consider libraries such as Mac Widgets for Java .

  • Use java.util.Preferences or javax.jnlp.BasicService , as suggested here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM