daily pastebin goal
71%
SHARE
TWEET

Untitled

a guest May 27th, 2018 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ObservableList<Person> items = FXCollections.observableArrayList();
  2. items.add(new Person("Hans","Meier",22));
  3. items.add(new Person("Eva","Becker",23));
  4. items.add(new Person("Max","Schmitt",24));
  5.  
  6. list.getSelectionModel().selectedItemProperty().addListener(
  7.     new ChangeListener<Person>() {
  8.       public void changed(ObservableValue<? extends Person> ov,
  9.         Person old_val, Person new_val) {
  10.           System.out.println(new_val.getAlter());
  11.       }
  12.     });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top