JavaFX ObservableSet create

Description

JavaFX ObservableSet create

import javafx.collections.FXCollections;
import javafx.collections.ObservableSet;

public class Main {
  public static void main(String[] args) {
    // Create an observable set with two elements
    ObservableSet<String> set = FXCollections.observableSet("one", "two");
    System.out.println(set);//ww  w. j a  v a  2  s  .  co m
  }
}



PreviousNext

Related