Question

I would like to develop windows applications that has native Mac OSX 10.9 look and feel. Is it possible? In case no such framework is available, what alternatives are available? Can I use any open source UI assets to achieve Mac look and feel?

Was it helpful?

Solution

I would like to develop windows applications that has native Mac OSX 10.9 look and feel.

Use this instead:

try {
    // Significantly improves the look of the output in each OS..
    // By making it look 'just like' all the other apps.
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch(Exception weTried) {
}

Note: It will not port the OS X look to Windows. But your users will thank you for that.

Can I use any open source UI assets to achieve Mac look and feel?

Nope. Apple would sue the pants off anyone who tried to replicate their look.

OTHER TIPS

Try using the method bellow. You won't be able to get a mac look and feel but there are a few you can try. I prefer the system default look and feel.

public static UIManager.LookAndFeelInfo[] getInstalledLookAndFeels()

Returns an array of LookAndFeelInfos representing the LookAndFeel implementations currently available. The LookAndFeelInfo objects can be used by an application to construct a menu of look and feel options for the user, or to determine which look and feel to set at startup time. To avoid the penalty of creating numerous LookAndFeel objects, LookAndFeelInfo maintains the class name of the LookAndFeel class, not the actual LookAndFeel instance.

The following example illustrates setting the current look and feel from an instance of LookAndFeelInfo:

UIManager.setLookAndFeel(info.getClassName());

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top