This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Square |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.dejay.javafx.example; | |
| import javafx.animation.Transition; | |
| import javafx.application.Application; | |
| import javafx.collections.ObservableList; | |
| import javafx.scene.Node; | |
| import javafx.scene.Scene; | |
| import javafx.scene.control.Label; | |
| import javafx.scene.layout.Region; | |
| import javafx.scene.text.Font; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javafx.application.Application; | |
| import javafx.collections.FXCollections; | |
| import javafx.event.EventHandler; | |
| import javafx.geometry.Insets; | |
| import javafx.geometry.Pos; | |
| import javafx.scene.*; | |
| import javafx.scene.chart.*; | |
| import javafx.scene.control.Label; | |
| import javafx.scene.input.MouseEvent; | |
| import javafx.scene.layout.VBox; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * To change this template, choose Tools | Templates | |
| * and open the template in the editor. | |
| */ | |
| package fxzoomtest01; | |
| import javafx.animation.KeyFrame; | |
| import javafx.animation.KeyValue; | |
| import javafx.animation.ScaleTransition; | |
| import javafx.animation.Timeline; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GridPane grid = new GridPane(); | |
| grid.setPadding(new Insets(10, 10, 10, 10)); | |
| grid.setVgap(8); | |
| grid.setHgap(10); | |
| Label username = new Label("Username"); | |
| GridPane.setConstraints(username, 0, 0); | |
| //Name input | |
| TextField nameInput = new TextField(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private boolean isInt(TextField input, String message){ | |
| try { | |
| int age = Integer.parseInt(input.getText()); | |
| System.out.println("user is: " + age); | |
| return true; | |
| } catch (NumberFormatException e){ | |
| System.out.println("Error: " + message + " is not a number"); | |
| return false; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javafx.application.Application; | |
| import javafx.application.Platform; | |
| import javafx.geometry.Insets; | |
| import javafx.scene.Scene; | |
| import javafx.scene.control.*; | |
| import javafx.scene.layout.*; | |
| import javafx.stage.Stage; | |
| public class Main extends Application { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javafx.application.Application; | |
| import javafx.application.Platform; | |
| import javafx.geometry.Insets; | |
| import javafx.scene.Scene; | |
| import javafx.scene.control.*; | |
| import javafx.scene.layout.*; | |
| import javafx.stage.Stage; | |
| public class Main extends Application { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javafx.application.Application; | |
| import javafx.application.Platform; | |
| import javafx.geometry.Insets; | |
| import javafx.scene.Scene; | |
| import javafx.scene.control.*; | |
| import javafx.scene.layout.*; | |
| import javafx.stage.Stage; | |
| public class Main extends Application { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javafx.application.Application; | |
| import javafx.application.Platform; | |
| import javafx.collections.ObservableList; | |
| import javafx.geometry.Insets; | |
| import javafx.scene.Scene; | |
| import javafx.scene.control.*; | |
| import javafx.scene.layout.*; | |
| import javafx.stage.Stage; |
OlderNewer