什么是javafx 2.1中的警报替换?警报在javafx 1.3中,但在javafx 2.1中没有 [英] What is replacement of alert in javafx 2.1 ? Alert is in javafx 1.3 but not in javafx 2.1

查看:121
本文介绍了什么是javafx 2.1中的警报替换?警报在javafx 1.3中,但在javafx 2.1中没有的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

警报是javafx 1.3中的类,但是在javafx 2.1中,不是。那么什么是javafx 2.1中警报的替换?

Alert is class in javafx 1.3 but in javafx 2.1, is not. So what is replacement of alert in javafx 2.1 ?

推荐答案

Teocali是正确的。 警报对话框进入3.0中的平台,目前正在开发中。

Teocali is correct. Alert dialogs go into the platform in 3.0, which is currently under development.

JavaFX 2.2支持对话框,暂停显示时执行。这使得创建自己的警报实现(通过调用 stage.showAndWait())非常简单。

JavaFX 2.2 features support for dialogs which suspend execution when they are displayed. This makes creating your own alert implementation (by calling stage.showAndWait()) pretty trivial.

(访问在这个答案的JavaFX jira链接中,您可以在点击其中一个链接时注册一个jira帐户。)

(to access the JavaFX jira links in this answer, you can sign up for a jira account upon clicking on one of the links).

Jonathan Giles(JavaFX开发人员)注意到:

Jonathan Giles (a JavaFX developer) notes:


由于时间不够,Dialogs类(因为它当前被调用)没有进入
JavaFX 2.2。我刚刚将我的
概念Dialogs类的证明推送到JavaFX Lombard(又名3.0)repo中,因此它可能包含在该版本中的
。虽然还有很长的路要走,只需花费
即可开始使用公共版本,您可以使用JavaFX 3.0构建开发
应用程序并使用API​​(并且
提供有关如何使用的反馈改进它。)

The Dialogs class (as it is currently called) did not make it into JavaFX 2.2, due to lack of time. I have just now pushed my proof of concept Dialogs class into the JavaFX Lombard (aka 3.0) repo, so it may possibly be included in that release. Whilst a long way off, at least with public builds to start soon, you can develop your applications using the JavaFX 3.0 builds and make use of the API (and provide feedback on how to improve it).

我创建了一个模态确认对话框示例

Anton创建了一个 JavaFXDialog项目

Anton created a JavaFXDialog project.

这篇关于什么是javafx 2.1中的警报替换?警报在javafx 1.3中,但在javafx 2.1中没有的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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