summaryrefslogtreecommitdiffstats
path: root/src/de/fhswf/in/inf/java2/aufgabe03/JavaFxMain.java
blob: b822b5fb28030463eaee2b8064165defdb6a84ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 * 
 */

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);
   }
}