问题描述
如果我在java中编写应用程序,如果在Mac OS X上运行,它是否使用本机窗口小部件?或者它是否使用java运行时提供的lookalike小部件?
谢谢。
您可以使用在OS X上使用本机OS X控件的试图像本机OS X小部件但不是,但跨平台工作。
If I write an application in java, does it use native widgets if run on Mac OS X? Or does it use "lookalike" widgets provided by the java runtime?
Thanks.
You can use SWT which uses native OS X controls on OS X but also remains multi-platform (provided that platform has the SWT library compiled for it). However, it is not as flexible or will look as nice as having direct access to the UI components themselves (an abstraction has to be made).
You could also have a look at MacWidgets which attempt to be like native OS X widgets but aren't, but work cross-platform.
alt text http://exploding-pixels.com/google_code/graphics/MailSourceListWithControlBar-selection.png
这篇关于Java是否允许您在Mac OS X上使用本机UI小部件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!