独立桌面应用程序中的表示层JavaFX(JavaFX for Presentation Layer in Standalone Desktop App)

编程入门 行业动态 更新时间:2024-10-25 05:23:05
独立桌面应用程序中的表示层JavaFX(JavaFX for Presentation Layer in Standalone Desktop App)

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

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

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?

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

最满意答案

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

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

如果需要,您甚至可以将其与Swing或SWT集成。 但请注意,反过来也不可能。

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

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

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

更多推荐

本文发布于:2023-08-01 21:58:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1365742.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   桌面   独立   JavaFX   Presentation

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!