Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private class hideCategory implements EventHandler<ActionEvent>
- {
- public void handle(ActionEvent e)
- {
- String currentCategory = li.getSelectionModel().getSelectedItem();
- Position pos;
- for(Place p : places.values()) {
- if ( p.getCategory().equals(currentCategory)) {
- pos=p.getPos();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement