/* * */ package de.fhswf.in.inf.java2.aufgabe03; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.layout.VBox; import javafx.stage.Stage; /** * The loader for a RegExTextField that validates e-mail addresses. * * @author $Author: $ * @version $Revision: $, $Date: $ UTC */ public class JavaFxMain extends Application { /* * (non-Javadoc) * * @see javafx.application.Application#start(javafx.stage.Stage) */ @Override public void start(Stage primaryStage) { RegExTextField regText = new RegExTextField("[a-z]"); EmailTextField emaText = new EmailTextField(); VBox vbox = new VBox(regText, emaText); Scene scene = new Scene(vbox); primaryStage.setScene(scene); primaryStage.show(); } /** * Loads the main window of this application. * * @param args * Command line arguments */ public static void main(String[] args) { launch(args); } }