Advertisement
Guest User

Untitled

a guest
Dec 16th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. override val root = gridpane() {
  2. minHeight = windowHeight
  3. minWidth = windowWidht
  4. prefHeight = windowHeight
  5. prefWidth = windowWidht
  6. }
  7.  
  8. // java
  9.  
  10. static Gridpane gridpane(Consumer<Gridpane> action) {
  11. Gridpane gp = new Gridpane();
  12. action(gp);
  13. return gp;
  14. }
  15.  
  16. Gridpane root = gridpane(gp -> {
  17. gp.minHeight = windowHeight
  18. gp.minWidth = windowWidht
  19. gp.prefHeight = windowHeight
  20. gp.prefWidth = windowWidht
  21. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement