JavaFX ObservableList create

Description

JavaFX ObservableList create

import javafx.collections.FXCollections;
import javafx.collections.ObservableList;

public class Main {
  public static void main(String[] args) {
 // Create an observable list with two elements 
    ObservableList<String> list = FXCollections.observableArrayList("One", "Two");
    System.out.println(list);//from www  .ja v  a 2 s  .c  o m
  }
}



PreviousNext

Related