Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- highScoreButton.setOnAction(e -> {
- //Tree frissítése
- highScoreLayout.getChildren().removeAll(highScoreLabel,tree,highScoreBackButton);
- ArrayList<Record> orderedUpdated = new ArrayList<Record>();
- for( Record r : highScoreList){
- orderedUpdated.add(r);
- }
- Collections.sort(orderedUpdated, new ScoreComparator());
- Collections.reverse(orderedUpdated);
- tree = growingTree(orderedUpdated);
- highScoreLayout.getChildren().addAll(highScoreLabel,tree,highScoreBackButton);
- /*Record batman = new Record("Batman", 55353, "frozen");
- highScoreList.add(batman);*/
- window.setScene(highScoreScene);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement