JavaFX是否具有“原生外观”?选项像Swing? [英] Does JavaFX have a "native look and feel" option like Swing?

查看:137
本文介绍了JavaFX是否具有“原生外观”?选项像Swing?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从我完成任何Java工作已经有几年了,我最后的努力是使用Swing。我正在寻找一个可以与Rails Web服务交互的跨平台客户端应用程序。 JavaFX是我正在考虑的选项之一,但我关注的是开箱即​​用的美学。 JavaFX是否具有JavaFX控件的原生外观选项(不是Swing)?

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 Rails web service. JavaFX is one of the options I'm considering, but I'm concerned at the out-of-the-box aesthetic. Does JavaFX have a native look and feel option for the JavaFX controls (not Swing)?

我得到的印象是,如果我想构建一行业务应用程序在Java中,我应该坚持使用Swing,因为我喜欢JavaFX的一些功能,比如绑定,简洁的语法,以及对REST客户端编程的简单支持。

I'm getting the impression that if I want to build a line of business application in Java, I should probably stick with Swing which is a shame since I like some of the features of JavaFX like binding, a terse syntax, and easy support for REST client programming.

推荐答案

我没有看到。充其量,你可以使用我们用1.3获得的CSS样式的广泛支持来模仿原生的外观和感觉,但这是一个很大的工作!甚至不确定如何处理我们在现代系统上获得的各种主题...

我认为RIA的目的是带来他们自己的外观或者足够灵活以允许做自己的闪亮外观,不要在你的平台上看起来像一个随意的平淡应用...: - )

I haven't see that. At best, you can use the extensive support of CSS styling we got with 1.3 to mimic native look and feel, but that's a big job! Not even sure how to deal with various themes we got on modern systems...
I suppose the point of RIAs is to bring their own look or to be flexible enough to allow to do your own shinny look, not to look like a random bland application on your platform... :-)

(现在,如果我喜欢可换肤的应用程序,我也很欣赏使用本机控件的GUI框架或像Qt(例如对阵GTK +)一样,正是为了提供良好的旧乏味应用程序而不破坏用户体验。)

(Now, if I like skinnable applications, I also appreciate GUI frameworks using native controls or looking as such, like Qt (vs. GTK+ for example), precisely to provide good old "bland" applications not breaking user experience.)

这篇关于JavaFX是否具有“原生外观”?选项像Swing?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆