use of de.jensd.fx.fontawesome.AwesomeIcon in project bitsquare by bitsquare.
the class AwesomeFontDemo method start.
@Override
public void start(Stage primaryStage) {
Pane root = new FlowPane();
List<AwesomeIcon> values = new ArrayList<>(Arrays.asList(AwesomeIcon.values()));
values.sort(new Comparator<AwesomeIcon>() {
@Override
public int compare(AwesomeIcon o1, AwesomeIcon o2) {
return o1.name().compareTo(o2.name());
}
});
for (AwesomeIcon icon : values) {
Label label = new Label();
Button button = new Button(icon.name(), label);
AwesomeDude.setIcon(label, icon);
root.getChildren().add(button);
}
primaryStage.setScene(new Scene(root, 900, 850));
primaryStage.show();
}