Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Java allow you to use native UI widgets on Mac OS X?

Tags:

java

macos

native

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.

like image 321
Colen Avatar asked Mar 22 '10 03:03

Colen


1 Answers

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).

alt text

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
(source: exploding-pixels.com)

like image 153
Chris Dennett Avatar answered Nov 05 '22 09:11

Chris Dennett