×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Volker Lenhardt
Added: Feb 19, 2022 6:31 PM
Views: 408
  1. // You may have a GridPane as the content of a ScrollPane.
  2. // Repeatedly you add a row to the grid.
  3. // The vertical scroll bar is to turn up, when the grid's height
  4. // exceeds the scroll pane's height.
  5. // You want the pane to scroll down automatically to the end,
  6. // whenever the user adds a new row.
  7.  
  8. // Bind the pane's vvalue to the grid's height:
  9.  
  10. scrollPane.vvalueProperty().bind(gridPane.heightProperty());