Skip to content

Instantly share code, notes, and snippets.

View nezarjhons's full-sized avatar
🎯
Focusing

nezar nezarjhons

🎯
Focusing
View GitHub Profile
@nezarjhons
nezarjhons / RecursiveTreeItem.java
Created July 6, 2019 04:23 — forked from manuel-mauky/RecursiveTreeItem.java
Recursive DataModel for JavaFX TreeView/TreeTableView
import javafx.collections.ListChangeListener;
import javafx.collections.ObservableList;
import javafx.scene.Node;
import javafx.scene.control.TreeItem;
import javafx.util.Callback;
import java.util.List;
import java.util.stream.Collectors;
public class RecursiveTreeItem<T> extends TreeItem<T> {
@nezarjhons
nezarjhons / gist:0c99dfdb850e0068633a910573b68fbc
Created June 21, 2019 04:41 — forked from prule/gist:5061089
Griffon/JavaFX - Adding a change listener to a text field Part 1
import javafx.beans.value.ChangeListener
import javafx.beans.value.ObservableValue
import org.apache.commons.lang.StringUtils
// model
@FXBindable String amount1
// view
textField(id: 'amount1', text: bind(model.amount1Property))