相当于Swing的JSpinner的JavaFX? [英] JavaFX equivalent of Swing's JSpinner?
问题描述
我试图找到一个像 JSpinner 这样的微调器组件.在我的JavaFX应用程序中使用,但没有此类组件.
您建议我使用哪个JavaFX组件代替微调器?
针对Java 8的更新
JavaFX 8现在具有内置的 Spinner 类作为核心JavaFX库的一部分(如 SWdV对这个问题的回答中所述)./p>
旧版(Java 8之前的版本)
JFXtras 库中有一个微调控件,您可以使用该实现,也可以根据需要对其进行调整.
提议将微调控件包含在将来的JavaFX版本中.目前尚未指定目标版本,因此可能甚至不会随Java 8一起发布.建议的微调控件具有可用性设计文档. open-jfx 项目可以接受可用性设计的高质量实现,以包含在核心中JavaFX平台或 JavaFX UI控件沙箱.
I was trying to find a spinner component like JSpinner to use in my JavaFX application but there is no such component.
What JavaFX component do you recommend me to use in place of a spinner?
Update for Java 8
JavaFX 8 has now an in-built Spinner class as part of the core JavaFX library (as mentioned in SWdV's answer to this question).
Old (pre-Java 8) Answer
There is a spinner control in the JFXtras library, you could use that implementation or possibly adapt it to your needs.
A spinner control is proposed for inclusion in a future JavaFX version. The target version is currently unspecified, so perhaps it won't even be released with Java 8. The proposed spinner control has a usability design document. The open-jfx project may accept a quality implementation of the usability design for inclusion into the core JavaFX platform or the JavaFX UI Control Sandbox.
这篇关于相当于Swing的JSpinner的JavaFX?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!