Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2015
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. // Create Combo Box
  2. ComboBox<String> combo = new ComboBox<String>();
  3.  
  4. // Add Items
  5. String[] items = { "One", "Two", "Three" };
  6. combo.getItems().addAll(items);
  7.  
  8. // List containing the items
  9. List<String> content = combo.getItems();
  10.  
  11. for (String string : content) {
  12. // ...
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement