Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. public void start(Stage stage) throws Exception {
  2.  
  3. Parent root = FXMLLoader.load(getClass().getResource("Preview.fxml"));
  4. Scene scene = new Scene(root);
  5. stage.setScene(scene);
  6. stage.setTitle("Ejemplo Drag And Drop");
  7. stage.show();
  8. }
  9.  
  10. /**
  11. * @param args the command line arguments
  12. */
  13. public static void main(String[] args) {
  14. launch(args);
  15. }
  16.  
  17. .mainFxmlClass {
  18. #pane{
  19. -fx-background-size: 800 900;
  20. -fx-background-radius: 0 0 18 18;
  21. -fx-border-radius: 0 0 18 18;
  22. -fx-border-width:5;
  23. -fx-background-color: #FC3D44;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement