问题标签 [javafx]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
5 回答
747 浏览

apache-flex - Dealing with asynchronous control structures (Fluent Interface?)

The initialization code of our Flex application is doing a series of asynchronous calls to check user credentials, load external data, connecting to a JMS topic, etc. Depending on the context the application runs in, some of these calls are not executed or executed with different parameters.

Since all of these calls happen asynchronously, the code controlling them is hard to read, understand, maintain and test. For each call, we need to have some callback mechanism in which we decide what call to execute next.

I was wondering if anyone had experimented with wrapping these calls in executable units and having a Fluent Interface (FI) that would connect and control them.

From the top of my head, the code might look something like:

The AsyncChain would be an execution tree, build with the FI (and we could of course also build one without a FI).

This might be an interesting idea for environments that run in a single threaded model like the Flash Player, Silverlight, JavaFX?, ...

Before I dive into the code to try things out, I was hoping to get some feedback.


Update 19/03/2010: We have created an experimental Task API in the Spring ActionScript project that provides control over async processes. We'd be happy to get feedback. http://www.springactionscript.org/docs/reference/html/the_operation_api.html#tasks

0 投票
3 回答
228 浏览

silverlight - JavaFX、Flex 而非默认语言

我可以在 JavaFx 或 Flex 中使用其他语言(不是 ActionScript 和 JavaFX 脚本)编写程序,例如在 Silverlight 中吗?

0 投票
1 回答
6172 浏览

java - 将 Swing 应用程序转换为 JavaFX

将 Swing 应用程序转换为 JavaFX 的必要步骤是什么?

了解执行此任务时的最佳实践(即可能遇到的问题和解决方案)也会很有趣。

0 投票
3 回答
6851 浏览

java - 模拟 JTable 的 JavaFX 组件

我有一个大型数据集,需要向用户显示并JTableJavaFX.

0 投票
2 回答
291 浏览

data-binding - javafx中的数据绑定只能在变量声明期间进行吗?

查看 javafx 教程和示例,始终在变量声明期间进行绑定:

或者

但是,如果我有一个现有的对象——因此不声明它——并且想要绑定它的一个属性,我该怎么办。在我的情况下,我使用 FXDLoader 加载 SVGPath,然后想将 SVGPath.visible 绑定到变量。我怎样才能做到这一点?

0 投票
3 回答
487 浏览

apache-flex - 网络研讨会申请

我想构建网络研讨会应用程序(聊天、实时视频、演示、白板等)。现在,我尝试选择平台(flash/flex、javafx)。有没有人有开发此类应用程序的经验?

0 投票
3 回答
2380 浏览

java - javafx 可以打印到点阵打印机吗?

我有客户仍在使用点阵来制作打印文件(如发票、报告等)的副本。我只为内部公司使用 grails(Web 应用程序)进行了开发(因此在所有计算机上安装/更新所有 java re 并不重要)

我仍在学习(刚开始)Javafx。我可以使用这个 javafx 从文件打印到点阵打印机吗?还是我应该改用小程序?我的朋友告诉我 java 有 lib 可以打印到点阵,这就是我坚持使用 javafx 或 applet 的原因

使用 applet 或 javafx 哪个更容易更好(也更快)?界面非常简单,只有一个带有 2 个输入字段和一个打印按钮的表单。

0 投票
1 回答
3127 浏览

web-services - JavaFX 小程序与服务器通信

我想用 JavaFX 小程序写一些页面。我希望小程序上的内容依赖于登录的用户。

我知道我可以从 JFX 调用 Web 服务,但是登录和会话呢?此外,我认为对于这种通信可能存在一些比从applet 调用位于applet 来自的机器上的Web 服务更好的解决方案。

我该怎么做?

0 投票
1 回答
996 浏览

java - 从哪里获得 JavaFx 创作工具?

我在哪里可以获得 JavaFx 创作工具?

0 投票
2 回答
198 浏览

user-interface - 构建 gui 组件树的首选方式

构建应用程序 gui 组件树的首选方法是什么?

  1. 实例化所有组件并构建整个树,通过对用户事件的显示/隐藏/禁用/启用操作来控制它。

  2. 使用基于用户事件的创建/添加/删除组件动态创建 gui。

我对 JavaFX 中的这个设计问题特别感兴趣。