Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package login;
  7.  
  8. import javafx.application.Application;
  9. import javafx.fxml.FXMLLoader;
  10. import javafx.scene.Parent;
  11. import javafx.scene.Scene;
  12. import javafx.stage.Stage;
  13.  
  14. /**
  15. *
  16. * @author j2-coode
  17. */
  18. public class Login extends Application {
  19.  
  20. @Override
  21. public void start(Stage stage) throws Exception {
  22. Parent root = FXMLLoader.load(getClass().getResource("login/FXMLDocument.fxml"));
  23.  
  24. Scene scene = new Scene(root);
  25.  
  26. stage.setScene(scene);
  27. stage.show();
  28. }
  29.  
  30. /**
  31. * @param args the command line arguments
  32. */
  33. public static void main(String[] args) {
  34. launch(args);
  35. }
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement