Advertisement
Guest User

Untitled

a guest
Jan 21st, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. private ComboBox.List<String> componentcatagaories;
  2.  
  3. Object[] catagaories = new String[]{"test1", "test2", "test3"};
  4. componentcatagaories = new ComboBox.List(5, 20, catagaories);
  5. this.componentcatagaories.setChangeListener((oldValue, newValue) -> {
  6. if (newValue != oldValue) {
  7. if (newValue.equals("test1")) {
  8.  
  9. }
  10. if (newValue.equals("test2")) {
  11.  
  12. }
  13. if (newValue.equals("test3")) {
  14.  
  15. }
  16. }
  17. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement