Skip to content

Instantly share code, notes, and snippets.

View Zookey's full-sized avatar

Zoran Pavlovic Zookey

View GitHub Profile
@Zookey
Zookey / test.css
Created May 24, 2012 13:10
test.css
#root {
-fx-background-color: linear-gradient(lightgray, gray);
}
#btn1{
-fx-background-color: radial-gradient(center 50% -40%, radius 200%, #00FFFF 45%, #00BFFF 50%);
-fx-text-fill: black;
-fx-font-size: 20px;
-fx-padding: 5 30 5 30;
@Zookey
Zookey / JavaFX 2 CSS
Created May 24, 2012 13:00
JavaFX 2 CSS
import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
/**
@Zookey
Zookey / JavaFX 2 ListView
Created May 20, 2012 22:14
JavaFX 2 ListView
import javafx.application.Application;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.control.ListView;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.VBox;
@Zookey
Zookey / JavaFX 2 ListView Handle Action
Created May 20, 2012 21:46
JavaFX 2 ListView Handle Action
import javafx.application.Application;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.ListView;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.StackPane;
@Zookey
Zookey / JavaFX 2 ListView Handle Action
Created May 20, 2012 21:42
JavaFX 2 ListView Handle Action
import javafx.application.Application;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.ListView;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.StackPane;