Skip to content

Instantly share code, notes, and snippets.

Avatar

Zoran Pavlovic Zookey

View GitHub Profile
@Zookey
Zookey / JavaFX 2 Login Form
Created May 29, 2012
JavaFX 2 Login Form
View JavaFX 2 Login Form
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.PasswordField;
import javafx.scene.control.TextField;
import javafx.scene.effect.DropShadow;
@Zookey
Zookey / JavaFX 2 ListView Handle Action
Created May 20, 2012
JavaFX 2 ListView Handle Action
View 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 Horizontal ListView Handle Action
Created Jun 20, 2012
JavaFX 2 Horizontal ListView Handle Action
View JavaFX 2 Horizontal ListView Handle Action
import javafx.application.Application;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.EventHandler;
import javafx.geometry.Orientation;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.control.ListView;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.VBox;
View gist:2829265
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.PasswordField;
import javafx.scene.control.TextField;
import javafx.scene.effect.DropShadow;
View login.css
#root {
-fx-background-color: linear-gradient(lightgray, gray);
-fx-border-color: white;
-fx-border-radius: 20;
-fx-padding: 10 10 10 10;
-fx-background-radius: 20;
}
#bp {
View gist:2829258
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.PasswordField;
import javafx.scene.control.TextField;
import javafx.scene.effect.DropShadow;
@Zookey
Zookey / gist:2829219
Created May 29, 2012
JavaFX 2 CSS Login Form
View gist:2829219
#root {
-fx-background-color: linear-gradient(lightgray, gray);
-fx-border-color: white;
-fx-border-radius: 20;
-fx-padding: 10 10 10 10;
-fx-background-radius: 20;
}
#bp {
@Zookey
Zookey / JavaFX 2 Working with Text
Created May 29, 2012
JavaFX 2 Working with Text
View JavaFX 2 Working with Text
import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.effect.DropShadow;
import javafx.scene.effect.GaussianBlur;
import javafx.scene.effect.InnerShadow;
import javafx.scene.effect.Reflection;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
import javafx.scene.text.Font;
@Zookey
Zookey / JavaFX 2 Working with Text
Created May 29, 2012
JavaFX 2 Working with Text
View JavaFX 2 Working with Text
import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.effect.DropShadow;
import javafx.scene.effect.GaussianBlur;
import javafx.scene.effect.InnerShadow;
import javafx.scene.effect.Reflection;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
import javafx.scene.text.Font;
@Zookey
Zookey / javafx 2 webview
Created May 27, 2012
javafx 2 web view
View javafx 2 webview
WebView browser = new WebView();
WebEngine engine = browser.getEngine();
String url = "http://zoranpavlovic.blogspot.com/";
engine.load(url);
You can’t perform that action at this time.