| 1 |
package de.jensd.fx.glyphs.materialstackicons.demo; |
| 2 |
|
| 3 |
import de.jensd.fx.glyphs.materialstackicons.MaterialStackIconView; |
| 4 |
import de.jensd.fx.glyphs.materialstackicons.MaterialStackIcons; |
| 5 |
import javafx.application.Application; |
| 6 |
import javafx.scene.Scene; |
| 7 |
import javafx.scene.layout.TilePane; |
| 8 |
import javafx.stage.Stage; |
| 9 |
|
| 10 |
public class StackDemo extends Application { |
| 11 |
|
| 12 |
private Scene scene; |
| 13 |
|
| 14 |
@Override |
| 15 |
public void start(Stage primaryStage) throws Exception { |
| 16 |
TilePane root = new TilePane(); |
| 17 |
root.getChildren().addAll(new MaterialStackIconView(MaterialStackIcons.FLASH_NOT_ALLOWED), |
| 18 |
new MaterialStackIconView(MaterialStackIcons.MUSIC_NOT_ALLOWED), |
| 19 |
new MaterialStackIconView(MaterialStackIcons.CAR_NOT_ALLOWED), |
| 20 |
new MaterialStackIconView(MaterialStackIcons.LIGHT), |
| 21 |
new MaterialStackIconView(MaterialStackIcons.WC)); |
| 22 |
scene = new Scene(root, 800, 600); |
| 23 |
primaryStage.setScene(scene); |
| 24 |
primaryStage.setTitle("MaterialStackIcons Demo"); |
| 25 |
primaryStage.show(); |
| 26 |
scene.getStylesheets().add(StackDemo.class.getResource("materialIcons.css").toExternalForm()); |
| 27 |
} |
| 28 |
} |