Advertisement
Guest User

Untitled

a guest
May 21st, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. private class hideCategory implements EventHandler<ActionEvent>
  2. {
  3.  
  4.  
  5.  
  6. public void handle(ActionEvent e)
  7. {
  8. String currentCategory = li.getSelectionModel().getSelectedItem();
  9. Position pos;
  10. for(Place p : places.values()) {
  11.  
  12. if ( p.getCategory().equals(currentCategory)) {
  13.  
  14. pos=p.getPos();
  15.  
  16. }
  17. }
  18.  
  19.  
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement