Does JavaFX have a “native look and feel” option like Swing?

后端 未结 5 1071
再見小時候
再見小時候 2021-01-31 14:10

It\'s been a couple of years since I\'ve done any Java work, my last efforts were using Swing. I\'m poking around with a cross-platform client app that will interact with a Rai

5条回答
  •  天命终不由人
    2021-01-31 14:51

    Native look and feel is not supported by Oracle in the default JavaFX 2.x distribution.

    A proof of concept on button styles by one of the JavaFX developers demonstrates that JavaFX is flexible enough to generate widgets that look like native widgets.

    For OS X, you can try the third party AquaFX style for JavaFX, which makes JavaFX applications look like native OS X applications. AquaFX appears quite complete and comprehensive to me.

    There have been other 3rd party projects which partially create native look and feels for other platforms, but their coverage is currently nowhere near comprehensive.

    Some third party projects (all of which seem currently experimental and incomplete) are:

    • JMetro in jfx-styles
    • javafx-native-themes (JavaFX look and feels for: default swing, iOS, windows 7...)

提交回复
热议问题