Advertisement
Guest User

Untitled

a guest
Apr 19th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. public class TowerDefense extends Application {
  2. @Override public void start(Stage stage) {
  3. // load the image
  4. Image image = new Image("MapCropped.png");
  5.  
  6. //displays ImageView image
  7. ImageView one = new ImageView();
  8. one.setImage(image);
  9. HBox box = new HBox();
  10. box.getChildren().add(one);
  11. Scene scene = new Scene(box);
  12.  
  13. stage.setTitle("Balloon Tower Defense");
  14. stage.setWidth(415);
  15. stage.setHeight(200);
  16. stage.setScene(scene);
  17. stage.sizeToScene();
  18. stage.show();
  19. }
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement