title: JavaFx button does not show
body: <p>I am trying to just show one button on the screen, but every time i run the java program nothing shows up. I am not sure why nothing is showing up.</p>
  
  <p>Code:</p>
  
  <pre><code>package application;
  
  import javafx.application.Application; 
  import static javafx.application.Application.launch; 
  import javafx.geometry.Insets; 
  import javafx.geometry.Pos; 
  
  import javafx.scene.Scene; 
  import javafx.scene.control.Button; 
  import javafx.scene.control.PasswordField;
  import javafx.scene.layout.BorderPane;
  import javafx.scene.layout.GridPane; 
  import javafx.scene.text.Text; 
  import javafx.scene.control.TextField; 
  import javafx.stage.Stage;  
  
  
  public class Main extends Application {
  @Override
  public void start(Stage primaryStage) {
      try {
          BorderPane root = new BorderPane();
          Scene scene = new Scene(root,400,400);
          scene.getStylesheets().add(getClass().getResource("application.css").toExternalForm());
          primaryStage.setScene(scene);
          primaryStage.show();
      } catch(Exception e) {
          e.printStackTrace();
      }
  
      Button button2 = new Button("Clear"); 
  }
  
  public static void main(String[] args) {
      launch(args);
  }
  }
  </code></pre>