Skip to content

Instantly share code, notes, and snippets.

@sh9va
sh9va / TreeTableView.java
Created December 7, 2017 14:47
JavaFX TableView in TableView (JavaFx Tree like TableView)
import java.util.ArrayList;
import java.util.List;
import javafx.application.Application;
import javafx.beans.property.SimpleStringProperty;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.geometry.Insets;
import javafx.scene.Group;
import javafx.scene.Node;
@sh9va
sh9va / AsyncLoadingExample.java
Created December 7, 2017 13:50
JavaFX asynchronous multiple loaders at same time in a single view
import javafx.application.Application;
import javafx.concurrent.Task;
import javafx.concurrent.WorkerStateEvent;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.ProgressIndicator;