Skip to content
Bruno Dantas edited this page Jul 24, 2015 · 112 revisions

JavaFXUtils

The aim of JavaFXUtils Repository, is to create a Framework with some utilities for JavaFX Framework, creating some small components to help developers building their own applications.

A Component is a simple Node object with some utilities mounted over it, for example: Imagine that we want to trigger some code on double click of a Button.

With JavaFX you can do something like:

Button button = new Button();

button.setOnMouseClicked((event)->{

`if(event.getClickCount() == 2)`

	`onDoubleClick();`

});

On JavaFXUtils there is DoubleClickComponent which deal with click count for you, and you can write the equivalent to the above code like:

Button button = new Button();

new DoubleClickComponent(button, action).mount();

Feel free to contribute by creating new components, finding or solving bugs and sharing this Repository! :)

Clone this wiki locally