JavaFX ObservableMap create

Description

JavaFX ObservableMap create

import javafx.collections.FXCollections;
import javafx.collections.ObservableMap;

public class Main {
  public static void main(String[] args) {
    // Create an observable map and add two key-value pairs to the map
    ObservableMap<String, Integer> map = FXCollections.observableHashMap();
    map.put("one", 1);
    map.put("two", 2);
  }//from  ww w .ja  va2  s .c  o  m
}



PreviousNext

Related