title: Stage won't open even though the code runs in javafx
body: <p>So, I made this simple code and it doesn't show any error or warnings, but for some reason, when I press run, it doesn't open a window. I'm not sure where it went wrong. The point of the code is to show a simple text depending on who tries to log in. I'm going to expand it later and add new things to it, but for now it just needs to run as it is.
  Here's the code:</p>
  <pre><code>public class LogIn extends Application {
  
      Users Cashier = new Users(&quot;Filan&quot;, &quot;Fisteku&quot;, &quot;ffisteku@gmail.com&quot;, 500, 1, &quot;0691234567&quot;, &quot;15/01/2000&quot;, &quot;open&quot;);
      Users Manager = new Users(&quot;Mario&quot;, &quot;Rossi&quot;, &quot;mrossi@gmail.com&quot;, 750, 2, &quot;0681234567&quot;, &quot;09/08/1995&quot;, &quot;lararossi&quot;);
      Users Administrator = new Users(&quot;John&quot;, &quot;Doe&quot;, &quot;jdoe1980@gmail.com&quot;, 1000, 3, &quot;0697654321&quot;, &quot;11/11/1980&quot;,
              &quot;password&quot;);
  
      public void start(final Stage stage) {
          // Creating nodes
  
          final TextField txtField = new TextField();
          final PasswordField pwField = new PasswordField();
          final Button button = new Button(&quot;LOGIN&quot;);
          button.setTranslateX(250);
          button.setTranslateY(75);
          // Creating labels
          final Label label1 = new Label(&quot;Email: &quot;);
          final Label label2 = new Label(&quot;Password: &quot;);
          // Setting the message with read data
          final Text text = new Text(&quot;&quot;);
          Font font = Font.font(&quot;Comic Sans&quot;, FontWeight.BOLD, FontPosture.REGULAR, 10);
          text.setFont(font);
          text.setTranslateX(15);
          text.setTranslateY(125);
          text.setFill(Color.BLACK);
          // Displaying the message
          button.setOnAction(new EventHandler() {
              public void handle(Event e) {
                  // Retrieving data
                  final String email = txtField.getText();
                  final String pw = pwField.getText();
  
                  if (email.equals(Cashier.email) &amp;&amp; pw.equals(Cashier.password)) {
                      text.setText(&quot;Hello &quot; + Cashier.name + &quot; &quot; + Cashier.lastname + &quot;. Welcome!&quot;);
  
                  }
                  if (email.equals(Manager.email) &amp;&amp; pw.equals(Manager.password)) {
                      text.setText(&quot;Hello &quot; + Manager.name + &quot; &quot; + Manager.lastname + &quot;. Welcome!&quot;);
  
                  }
                  if (email.equals(Administrator.email) &amp;&amp; pw.equals(Administrator.password)) {
                      text.setText(&quot;Hello &quot; + Administrator.name + &quot; &quot; + Administrator.lastname + &quot;. Welcome!&quot;);
  
                  }
                  // Adding labels for nodes
                  HBox box = new HBox(5);
                  box.setPadding(new Insets(25, 5, 5, 50));
                  box.getChildren().add(label1);
                  box.getChildren().add(txtField);
                  box.getChildren().add(label2);
                  box.getChildren().add(pwField);
                  Group root = new Group();
                  root.getChildren().add(box);
                  
  // Setting the stage
                  Scene scene = new Scene(root, 500, 250, Color.SILVER);
                  stage.setTitle(&quot;LogIn Site for Tech Store&quot;);
                  stage.setScene(scene);
                  stage.show();
              }
          }
  
          );
          ;
          ;
          ;
          ;
      }
  
      public static void main(String args[]) {
          launch(args);
      }
  
  }
  </code></pre>