用于独立桌面应用程序中的表示层的JavaFX [英] JavaFX for Presentation Layer in Standalone Desktop App

查看:194
本文介绍了用于独立桌面应用程序中的表示层的JavaFX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们将创建一个java独立桌面应用程序。我们正在寻找表示层的最佳解决方案。我看过javaFX,真的很喜欢它,但我有点困惑。它可以用在独立的桌面应用程序中吗?

We are going to create a java standalone Desktop application. We are searching for the best solution for the presentation layer. I saw javaFX and really liked it, but I am a bit confused. Can it be used in standalone Desktop applications?

我可以在我的独立桌面应用程序中使用javaFX并使用css来设置Ui样式吗?

Can I use javaFX in my standalone Desktop app and also use css to style the Ui?

推荐答案

完全有可能在一个独立的桌面应用程序中使用JavaFX并对其应用CSS样式。

It is perfectly possible to use JavaFX in a standalone Desktop app and apply CSS styling to it.

在JavaFX的术语中,这被称为独立或自包含部署

In JavaFX's lingo, this is know as a "Standalone" or "Self-Contained" deployment.

您甚至可以将它与 Swing SWT ,如果需要出现。但请注意,反过来也不可能。

You can even integrate it with Swing or SWT, if the need arises. Note, though, that it's not possible the other way round.

这篇关于用于独立桌面应用程序中的表示层的JavaFX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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