Last active
December 29, 2015 21:39
-
-
Save Qbisiek/7731146 to your computer and use it in GitHub Desktop.
This file contains 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 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 | |
{ | |
private Scene scene; | |
private GridPane grid; | |
public void start(Stage primaryStage) | |
{ | |
primaryStage.setTitle("JavaFX Login Form"); | |
grid = new GridPane(); | |
grid.setAlignment(Pos.CENTER); | |
grid.setHgap(10); | |
grid.setVgap(10); | |
grid.setPadding(new Insets(25, 25, 25, 25)); | |
scene = new Scene(grid, 300, 275); | |
primaryStage.setScene(scene); | |
primaryStage.show(); | |
} | |
public static void main(String[] args) | |
{ | |
launch(args); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment