Skip to content

Instantly share code, notes, and snippets.

package prog2.colorgrid;
import javafx.beans.binding.Bindings;
import javafx.beans.binding.NumberBinding;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.application.Application;
import javafx.geometry.HPos;
import javafx.scene.Scene;
import javafx.scene.control.Label;
@skrb
skrb / Album.java
Created June 24, 2014 05:27
Table Sample
import javafx.beans.property.IntegerProperty;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleObjectProperty;
public class Album {
private ObjectProperty<String> title = new SimpleObjectProperty<>();
private ObjectProperty<String> artist = new SimpleObjectProperty<>();
@aki017
aki017 / Test
Created December 16, 2013 05:01
package info.aki017.Test;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.Hyperlink;
import javafx.scene.control.Label;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.HBox;
package application;
import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.layout.GridPane;
import javafx.stage.Stage;
public class LoginForm extends Application
@james-d
james-d / PseudoClassExample.java
Last active December 28, 2015 19:19
Example of using new Pseudoclass API in JavaFX 8.
package pseudoclasstest;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Pattern;
import javafx.application.Application;
import javafx.beans.binding.Bindings;
import javafx.beans.property.BooleanProperty;
import javafx.beans.property.SimpleBooleanProperty;
package oynatici;
import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.media.Media;
import javafx.scene.media.MediaPlayer;
import javafx.scene.media.MediaView;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
@jewelsea
jewelsea / MovementEventsDemo.java
Created January 19, 2013 00:31
JavaFX sample of moving a shape around on the screen in response to key and mouse presses.
import javafx.animation.TranslateTransition;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.*;
import javafx.scene.control.Label;
import javafx.scene.input.*;
import javafx.scene.paint.Color;
import javafx.scene.shape.Circle;
import javafx.stage.Stage;