Skip to content

Instantly share code, notes, and snippets.

@Qbisiek
Last active December 29, 2015 21:39
Show Gist options
  • Save Qbisiek/7731146 to your computer and use it in GitHub Desktop.
Save Qbisiek/7731146 to your computer and use it in GitHub Desktop.
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