Skip to content

Instantly share code, notes, and snippets.

@kernelfreak
kernelfreak / ConsumeJSON.java
Created March 1, 2016 15:24 — forked from TheItachiUchiha/ConsumeJSON.java
Consuming a Rest Service which return JSON data (requires GSON)
import com.google.common.reflect.TypeToken;
import com.google.gson.Gson;
import javafx.application.Application;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.concurrent.Task;
import javafx.concurrent.WorkerStateEvent;
import javafx.event.EventHandler;
import javafx.geometry.HPos;
import javafx.geometry.Insets;