你对JavaFX有什么看法? [英] What are your feelings on JavaFX?

查看:126
本文介绍了你对JavaFX有什么看法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在ActionScript 3.0中做了很多工作,我也喜欢用Java编程。 JavaFX对我来说是完美的吗? JavaFX的一般感觉是什么,它会成为一个强大的力量,还是与Java Applets走同一条道路?我与之合作的设计师是否能够熟悉JavaFX以及他们对ActionScript和JavaScript的熟悉程度?

I currently do a lot of work in ActionScript 3.0, I also love to program in Java. Is JavaFX perfect for me? What is the general feeling on JavaFX, will it become a power house, or go down the same path as Java Applets? Could the designers I work with become comfortable with JavaFX to the same extent they are comfortable with ActionScript and JavaScript?

推荐答案

只是想要添加我的$ .02 ...在我使用它的第一个小方项目的过去4天里,我一直在使用JavaFX。作为一些背景知识,我已经专业编程了大约9年,从C开始,并且在过去的6年里一直在做Java和C#/ .NET。

Just wanted to add my $.02... I've been working in JavaFX for the last 4 days on my first little side-project using it. As some background, I've been programming professionally for about 9 years, starting with C, and have been doing Java and C#/.NET for the last 6 yrs.

IMO,JavaFX它应该是更令人沮丧的方式。以下是一些抱怨:

IMO, JavaFX its way more frustrating that it should be. Here are some gripes:


  1. 语法有时很奇怪。它可能更像是Java,因为它的 Java FX。但语法并不是从Java轻松过渡。

  1. The syntax is just odd at times. It could easily be more like Java, since its JavaFX. But the syntax isn't an easy transition from Java.

.fx文件中项目的顺序实际上很重要,意味着你遇到了愚蠢的循环引用错误,并且你还不能使用这个变量,因为它还没有被初始化编译器应该轻松处理的问题,但不会。

The order of items in a .fx file actually matters, which means you run into stupid circular reference errors, and "oh you can't use this variable yet because it hasn't been initialized" problems that the compiler should handle with ease, but doesn't.

随机的东西都行不通。 Swing控件上的动作/事件并不总是有效,例如似乎没有调用SwingSliderBar的onKeyPressed / release。

Random things just don't work. Actions/events on Swing controls don't always work, for example SwingSliderBar's onKeyPressed/released don't seem to be called.

错误处理只是。如果发生了未处理的异常,除了Java控制台之外没有真正的方法可以告诉其他人,并且UI元素开始反应有趣。例如,创建一个SwingText框并将其值绑定到变量。现在尝试编辑文本框中的值将引发异常,因为您无法编辑绑定变量。然而,在UI中,文本框刚刚开始发生有趣的事情。有些字符只有1/2漆,有时退格什么都不做,有时它会删除一个字符,有时你可以按键盘上的2键,如1和2,文本框最后会输入21而不是12等......

Error handling is just bad. If an exception occurs that isn't handled, there is no real way to tell other than the Java console, and UI elements start to react funny. For example, make a SwingText box and bind its value to a variable. Now trying to edit the value in the text box will throw an exception because you cant edit the bound variable. However in the UI, the text box just starts having funny things happen. some characters only 1/2 paint, sometimes backspace does nothing, sometimes it deletes a character, sometimes you can press 2 keys ont eh keyboard like "1" and "2" and the text box will end up having "21" entered in it instead of "12", etc...

虽然我现在对JavaFX开发的绝对排名第一的问题是<强> Netbeans的即可。在JFX这是可怜的。无法调试,IDE中的错误显示错误(我已将其标记为错误标记!),intellisence仅在40%的时间内工作,事件是他在IDE中预编程的代码模板用于拖放&丢弃控件不正确。我忘了哪一个,但其中一个掉了&在插入的代码的末尾永远无效并且总是必须手动删除...它只是简单的糟糕,对于像Sun这样的公司来说是不可接受的。

Although my absolute #1 problem with JavaFX development right now is Netbeans. It is pathetically bad at JFX. Can't debug, errors display wrong in the IDE (I've had it flag comments as errors!), the intellisence only works like 40% of the time, event he code templates preprogrammed in the IDE for drag & dropping controls aren't correct. I forget which one, but one of them drops a "&" at the end of the inserted code that is never valid and always has to be manually deleted... its just plain awful, and is unacceptable for a company like Sun.

另一个抱怨是一般文件。它只是缺乏。不知何故,JavaFX API在搜索方法/类时甚至没有成为google上的#1搜索结果。网上的大量示例不再适用,因为每个版本都有重大的重构更改,并且类被删除或重命名。

Another gripe is general documentation. Its just lacking. Somehow the JavaFX API doesn't even come up as the #1 search result on google when searching for methods/classes. Tons of "examples" out on the web don't work any more as every version has major refactoring changes, and classes removed or renamed.

总的来说,我给JFX一个我希望喜欢它,但是JFX 1.1只是没有削减它......它绝对不是我认为的生产就绪。

Overall, I give JFX a 4 out of 10. I want to like it, but JFX 1.1 just doesn't cut it... its definitely not what I would consider "production ready".

这篇关于你对JavaFX有什么看法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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