Advertisement
Guest User

Untitled

a guest
Mar 24th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 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 przyklad1;
  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. import javafx.stage.StageStyle;
  14.  
  15. /**
  16. *
  17. * @author pweichbroth
  18. */
  19. public class Przyklad1 extends Application {
  20.  
  21. @Override
  22. public void start(Stage stage) throws Exception {
  23. Parent root = FXMLLoader.load(getClass().getResource("FXMLDocument.fxml"));
  24.  
  25. Scene scene = new Scene(root);
  26.  
  27. stage.setScene(scene);
  28. //stage.setResizable(false);
  29. //stage.setX(0);
  30. //stage.setY(0);
  31.  
  32. //stage.setFullScreen(true);
  33.  
  34. stage.initStyle(StageStyle.UTILITY);
  35. //stage.setOpacity(0.8);
  36.  
  37. stage.show();
  38. }
  39.  
  40. /**
  41. * @param args the command line arguments
  42. */
  43. public static void main(String[] args) {
  44. launch(args);
  45. }
  46.  
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement