Advertisement
Guest User

Untitled

a guest
Jul 31st, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. package sample;
  2.  
  3. import java.io.IOException;
  4. import java.net.URL;
  5. import java.util.ResourceBundle;
  6.  
  7. import javafx.application.Application;
  8. import javafx.fxml.FXML;
  9. import javafx.fxml.FXMLLoader;
  10. import javafx.scene.Scene;
  11. import javafx.scene.layout.AnchorPane;
  12. import javafx.scene.layout.BorderPane;
  13. import javafx.scene.canvas.Canvas;
  14. import javafx.scene.canvas.GraphicsContext;
  15. import javafx.scene.control.ScrollPane;
  16. import javafx.scene.paint.Color;
  17. import javafx.stage.Stage;
  18.  
  19. public class Main extends Application {
  20.  
  21. public static void main(String[] args) {
  22. launch(args);
  23.  
  24. }
  25.  
  26. @Override
  27. public void start(Stage stage) throws IOException {
  28. AnchorPane root;
  29. BorderPane root2;
  30. ScrollPane root3;
  31. // try {
  32.  
  33.  
  34. // root = (AnchorPane)FXMLLoader.load(getClass().getResource("sample10.fxml"));
  35. root = (AnchorPane)FXMLLoader.load(getClass().getResource("sample9.fxml"));
  36. Scene scene = new Scene(root,1500,700);
  37. stage.setScene(scene);
  38. stage.show();
  39. // } catch (IOException e) {
  40. // e.printStackTrace();
  41. // }
  42.  
  43.  
  44. }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement