Eclipse 和 JavaFX?只有我吗?

发布于 2024-08-18 11:09:09 字数 680 浏览 3 评论 0原文

我正在考虑学习 JavaFX。

我尝试设置 Eclipse 来开发一个小应用程序,并且我已经下载了 Eclipse 插件。

Eclipse JavaFX 插件

但是......它看起来只是,嗯,不稳定。

所以我有3个问题...

1:有更好的插件吗?

2:或者我缺少一些很棒的教程吗?

3:最后,从FX调用Java代码是否意味着很容易?我很困惑,某处有一个很好的例子吗?

关于问题 1 & 2、Eclipse 用红色下划线显示了不应该的代码。例如.. 看到这个图片...替代文本http://www.qenet.co.uk/fx。 jpg

为什么导入部分会用红色下划线?

我知道这不是一个开放式问题。所以我想我的主要问题是……

我对 JavaFX 和 Eclipse 的体验是我能期望的最好的吗?或者我错过了什么? (我不是在寻找“是/否”的回答):-)

只是寻找有关如何最好地学习/开发 JavaFx 的讨论。

I'm looking at learning JavaFX.

I've tried setting Eclipse to develop a small app and I've downloaded the Eclipse plugin.

Eclipse JavaFX plugin

BUT... it just seems, well, flakey.

So I have 3 questions...

1: Is there a better plugin?

2: Or is there some great set of tutorials out there that I'm missing?

3: finally, is it meant to be easy to call Java code from FX? I'm stuggling, it there a good example somewhere?

On questions 1 & 2, Eclipse underlines code in red that just shouln't be. For example..
see this image... alt text http://www.qenet.co.uk/fx.jpg

Why does it underline bit of imports in red?

I know this is little of an open ended question. So I guess my main question is this...

Is my experiance of JavaFX and Eclipse the best I can hope for? Or am I missing something ?
(and I'm not looking for a Yes/No response) :-)

Just looking for a discussion on how best to learn/develop JavaFx.

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

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

发布评论

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

评论(5

画中仙 2024-08-25 11:09:09

这种事情并不罕见。许多 Eclipse 插件编辑器在处理错误标签等方面都存在问题。例如,

  • 我发现 XML 和 HTML 文件编辑器经常无法清除错误和警告标记,而消除这些标记的唯一方法是关闭并重新打开文件。

  • 即使 Java 查看器在某些情况下也会出错,尽管保存相关文件后问题就会消失。

  • 更新拼写词典时,不会重新运行拼写检查器,也不会更新拼写错误标记。事实上,您必须重新启动 Eclipse 才能发生这种情况。

我建议您尝试保存文件,然后关闭/重新打开编辑器,看看这是否会使虚假错误标记消失。然后确定 Eclipse 是否是适合此任务的 IDE。

我(根本)从未使用过 NetBeans,但您会期望它能更好地支持 JavaFX。毕竟,NetBeans 和 JavaFX 目前都是备受瞩目的 Sun 产品。

This kind of thing is not unusual. A lot of Eclipse plugin editors have problems dealing with error tags and the like. For example,

  • I find that the XML and HTML file editors often fail to clear error and warning markers, and the only way to get rid of the markers it is close and reopen the file.

  • Even the Java viewer gets it wrong in some circumstances, though the problem goes away when the relevant files are saved.

  • When you update a spelling dictionary, the spelling checker is not rerun and the spelling error markers are not updated. In fact, you have to restart Eclipse for this to happen.

I suggest that you try saving files, and closing/reopening editors to see if that makes the bogus error markers go away. Then decide whether Eclipse is the right IDE for this task.

I've never used NetBeans (at all), but you would expect that it would do a better job supporting JavaFX. After all NetBeans and JavaFX are both high profile Sun products at the moment.

卖梦商人 2024-08-25 11:09:09

Netbeans 确实是目前 JavaFX 开发的唯一途径。它们都是 Sun 产品,并且 Sun 确保两者能够很好地协同工作。不久之后 Eclipse 和其他公司就会迎头赶上,但目前情况就是这样。

Netbeans is really the only way to go at the moment for JavaFX development. They are both Sun products and Sun has made sure the two work very well together. Before long Eclipse and others will catch up but for the moment that's how it is.

我三岁 2024-08-25 11:09:09

Exadel 还有另一个适用于 Eclipse 的 JavaFX 插件。您可以在此处下载:http://exadel.org/javafxplugin。尝试一下。

There is another JavaFX plug-in for Eclipse from Exadel. You can download it here: http://exadel.org/javafxplugin. Give it a try.

时光是把杀猪刀 2024-08-25 11:09:09

我也有类似的问题,但有趣的是只在 Linux 下,而不是 Windows 下。希望他们尽快改变这一点。

I have similar problems but funnily only under Linux, not Windows. Hope they change that soon.

╭ゆ眷念 2024-08-25 11:09:09

对我来说,当我错误安装 javafx sdk 1.2.3 时,就发生了这种情况...该插件仅适用于 1.2.1...:/

To me this has happened when I wronlgy installed javafx sdk 1.2.3....This plugin works only with 1.2.1... :/

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