JavaFX 的 UI 控件集 ControlsFX

转载 2013年12月05日 12:55:56


JavaFX 的 UI 控件集 ControlsFX

ControlsFX 开源项目旨在为 JavaFX 开发提供更多的 UI 控件和其他工具。 

该项目主要针对JavaFX 8.0(捆绑在JDK 8中),考虑到JavaFX中已经包含了一些控件,ControlsFX只会包含新的控件和功能,并且还有一个完善的javadoc文档。 


1.  按钮栏 


2.  对话框 


3.  GridView 


4.  范围滑块 


5.  评分控件 


6.  SegmentedButton(分段按钮) 


需要注意的是,ControlsFX目前只支持JavaFX 8.0 b87(捆绑在JDK8 b87版本中)及更高版本,如果你使用的是JDK 8早期版本,则需要升级。JavaFX 2.x及之前版本不受支持。

介绍内容来自 iteye



ControlsFX is an open source project for JavaFX that aims to provide really high quality UI controls and other tools to complement the core JavaFX distribution. It has been developed for JavaFX 8.0 and beyond, and has a guiding principle of only accepting new controls / features when all existing code is at an acceptably high level, including thankless jobs like having high quality javadoc documentation. This ensure a high quality release is available at all times, with all experimental work being done in branches of the main code base.

Important note: ControlsFX will only work on JavaFX 8.0 b118 or later. If you are running on earlier versions of JDK 8, please upgrade. If you are still using JavaFX 2.x then unfortunately this library will not work for you.

Getting Started

If you want to play with the ControlsFX sample application, either clone the ControlsFX repo from bitbucket and then run the org.controlsfx.HelloControlsFX application that resides within thesrc/samples/java directory, or run the samples jar file from the command line with the following command (or a variation depending on your operating system):

java -cp controlsfx-8.0.3.jar:controlsfx-8.0.3-samples.jar org.controlsfx.HelloControlsFX

If you think you have a feature you can contribute, a bug you want to fix, or have a bug youd like to file, please direct it to the issue tracker over at the ControlsFX bitbucket website.

If you want to use ControlsFX, then youre probably wondering how to use the API that weve slaved over for hours! In your case, the best and definitive location for help is definitely our javadocs. Fear not, these are not a barren wasteland of undescribed functionality weve poured our hearts into making these javadocs full to the brim of examples, commentary and explanation. If anything is unclear to you, file a bug in our issue tracker and well do our best to update the documentation straight away!

If you have questions, you should join the the mailing list.

Another great place to explore is our sample code, all located in the src/samples directory of our code repository. Weve put a bunch of effort into making these examples something you can learn from.

Release Versioning

ControlsFX has a slightly different approach to version numbers than other projects. We use the fairly traditional x.y.z numbering system, except in the case of ControlsFX, the x.y portion is used to represent the base JavaFX version required. In other words, ControlsFX 8.0.0 is the first release of ControlsFX to work on JavaFX 8.0 and above. ControlsFX 8.1.5 (if we ever release that version) is used to represent that the release will work on JavaFX 8.1 (and not JavaFX 8.0), and is the 6th release (remember: real programmers count from zero :-) ).

In other words, we do not differentiate between bug fix and feature releases we will clarify what the release contains on a per-release basis. Also, we will always aim to require the minimal version of JavaFX possible, but we are also not going to hold back features / bug fixes / etc if we can resolve them by moving to a newer release. Prior to moving up to a new JavaFX version we will always tag therepository and make available a download of the source and compiled code for the earlier version, for people who are unable to move to the newer JavaFX release.


The library can be downloaded from from ControlsFX website. It is possible to download the current release (8.0.3), or also current development snapshots from Maven Central using the following dependency settings:

dependencies {
   runtime 'org.controlsfx:controlsfx:8.0.3'
<dependency org="org.controlsfx" name="controlsfx" rev="8.0.3"/>
libraryDependencies += "org.controlsfx" % "controlsfx" % "8.0.3"


ControlsFX is licensed under the 3-Clause BSD license. We are not lawyers, but our interpretation of this license suggests to us that it is business friendly, requiring only the redistribution of the 3-clause BSD license we distribute with ControlsFX. As always, I suggest you review the license with the appropriate people, rather than take the advice of software engineers. If this license is not suitable, please contact Jonathan Giles to discuss an alternative license.


Useful links:


ControlsFX 是JavaFX的一个扩展控件库。是对JavaFX内置的控件的一个补充。   下面是ControlsFX的示例程序:      大家可以看到,Cont...
  • qq_23052951
  • qq_23052951
  • 2015年12月14日 10:43
  • 2784


声明:   本博客文章原创类别的均为个人原创,版权所有。转载请注明出处:,另外本人的个人博客:。 ...
  • ml3947
  • ml3947
  • 2013年07月11日 14:03
  • 4124

JavaFX 的 UI 控件集 ControlsFX

出处: ControlsFX is an open source project for JavaFX ...
  • leonzhouwei
  • leonzhouwei
  • 2013年12月05日 12:55
  • 1383


在JavaFX的UI开发中,FXController是个很重要的东西,主要是用于UI层和事件层分离。  事实上,JavaFX使用FXML来开发UI界面,有多种形式来监听我们的事件,下面我们来细看。  ...
  • ml3947
  • ml3947
  • 2014年11月21日 16:08
  • 13631


  • loongshawn
  • loongshawn
  • 2017年07月11日 19:16
  • 943


首先是API文档    controlsfx官方 然后,选择  HomePage 这里有两个版本,部分控件在两个版本存在新的功能方法。如AutoCompletionBinding抽象类,在8.4版...
  • StaticFinal520
  • StaticFinal520
  • 2016年11月26日 14:29
  • 465


对于e(fx)clipse,本人也不再赘述,其实就是eclipse的JavaFX插件。  那么,我们将看看e(fx)clipse是如何进行项目打包的。      首先打开e(fx)c...
  • qq_23052951
  • qq_23052951
  • 2015年12月14日 10:20
  • 1094


javafx已经嵌入在jre之中 2 javafx UI设计工具JavaFX Scene Builder. Oracle支持的javafx额外UI库,现在只支持jdk8:contr...
  • xby1993
  • xby1993
  • 2013年12月08日 19:48
  • 2952

JavaFX - 使用UI控件

 使用JavaFX UI控件 本教程涵盖了内置JavaFX UI控件JavaFX中可用的API。 文档包含以下章节: 标签 按钮 单选按钮 ...
  • alanzyy
  • alanzyy
  • 2014年06月19日 01:15
  • 1181

JavaFX2.0 UI控件教程(全部控件)

【终于把控件部分的教程翻译完了……后续有时间,还会有其它有关JavaFX的内容发表。希望自己继续坚持!】 本部分是关于JavaFX 2.0的所有关于UI控件的应用介绍。内容较多,故提供完整的...
  • s_ghost
  • s_ghost
  • 2012年05月10日 12:44
  • 3772
您举报文章:JavaFX 的 UI 控件集 ControlsFX