在学习 JavaFx 之前我应该​​先学习 Swing 吗?

发布于 2024-07-14 01:10:26 字数 242 浏览 4 评论 0原文

如果我没有任何 UI 编程背景,开始学习 JavaFx 是否有意义? 先学习 Swing 然后再学习 JavaFx 是否更明智?

我在 Netbeans 中尝试了 JavaFx 网站上的入门教程,代码对我来说非常复杂。 我想知道 JavaFx 对于初学者 GUI 开发人员来说是否太先进。

Does it make sense to start learning JavaFx if I do not have any background in UI programming? Is it more advisable to learn Swing first and then move on to JavaFx ?

I tried the getting started tutorial on JavaFx website in Netbeans and the code looked extremely complicated to me. I am wondering if JavaFx is too advanced for a beginnner GUI developer.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

少女情怀诗 2024-07-21 01:10:26

看看 JavaFX 教程,我会说:

  1. 您不需要了解 Swing 就可以使用 JavaFX
  2. 如果您发现 JavaFX 教程很难学习 Swing 不会更容易,那么

如果您根本没有编程背景,那么从任何语言开始都是可行的成为一个挑战。 如果您了解一点语言编程,那么这仍然是一个挑战。

我的建议是深入研究并努力。 快速谷歌搜索(JavaFX Hello World)有很多点击...我快速浏览了 这个 我会说从它开始。

Looking at the JavaFX tutorial I would say that:

  1. you don't need to know Swing to use JavaFX
  2. if you find the JavaFX tutorial hard learning Swing won't be easier

If you have no programming background at all then starting in any language is going to be a challenge. If you know a little programming in a language then it is still going to be a challenge.

My advice is to dive in and work at it. A quick google search (JavaFX Hello World) has a number of hits... I took a quick look at this one and I'd say start with it.

圈圈圆圆圈圈 2024-07-21 01:10:26

我认为了解 swing 不会让您在使用 JavaFX 方面占据很大优势。 JavaFX 看起来更像是脚本而不是实际的 java 编程。 不用swing也能学好JavaFX。

I don't think knowing swing will give you much of an upper hand with JavaFX. JavaFX seems more like scripting rather than actual java programming. You can learn JavaFX fine without swing.

唱一曲作罢 2024-07-21 01:10:26

据我了解,JavaFX 库没有那么多合适的 UI 组件,但由于 JavaFX 允许您使用任何 Swing 组件,因此了解 Swing 可能会很有用。 随着 JavaFX 的成熟,这种说法可能会越来越不真实。

From what I understand the JavaFX libraries do not have that many proper UI components but since JavaFX allows you to use any Swing component it might be useful to know Swing. This will probably be less true and less true as JavaFX matures.

残花月 2024-07-21 01:10:26

好吧,至少有相当多的相似之处...例如,Stage 相当于 Java 中的 JFrame,场景相当于 JPanel...绑定机制类似于(嗯,有点) Java 中的侦听器概念...

哦,JavaFX 对于程序员来说不应该太复杂,因为它主要针对 Web 开发人员^^。

Well, there is at least a fair amount of similarities... a Stage e.g. is the equivalent of a JFrame in Java, a scene is the equivalent to a JPanel... the binding mechanism is similar (well, sort of) to the listener concept in Java...

Oh, and JavaFX shouldn't be too complicated for programmers, as it is primarily targeted to web developers ^^.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文