Advertisement
Guest User

Untitled

a guest
Oct 14th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.48 KB | None | 0 0
  1. package sample;
  2.  
  3. import javafx.fxml.FXML;
  4. import javafx.scene.control.Label;
  5. import javafx.scene.control.TextField;
  6.  
  7. public class Controller {
  8.  
  9.     @FXML
  10.     private TextField textField;
  11.  
  12.     @FXML
  13.     private Label labelName;
  14.  
  15.     private Person person = new Person();
  16.  
  17.     @FXML
  18.     public void initialize(){
  19.  
  20.         textField.textProperty().bindBidirectional(person.getPropertyTextField());
  21.  
  22.  
  23.     }
  24.  
  25.     @FXML
  26.     public void write() {
  27.  
  28.     }
  29.  
  30.  
  31.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement