This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Button b = new Button("Text"); | |
| b.setFont(new Font("Arial", 24)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #my-button { | |
| -fx-font-family: "Arial"; | |
| -fx-font-size: 24; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .text { | |
| -fx-font-family: "Asap"; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @font-face { | |
| font-family: 'Roboto'; | |
| src: url('Roboto-Medium.ttf'); | |
| } | |
| .text { | |
| -fx-font-family: "Roboto"; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <dependency> | |
| <groupId>com.guigarage</groupId> | |
| <artifactId>responsivefx</artifactId> | |
| <version>X.Y</version> | |
| </dependency> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="hidden-xs">big text<div> | |
| <div class="visible-xs">small text<div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ResponsiveHandler.addResponsiveToWindow(primaryStage); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TableView table = new TableView(items); | |
| table.getStyleClass().addAll("visible-lg", "visible-md"); | |
| ListView list = new ListView(items); | |
| list.getStyleClass().addAll("visible-xs", "visible-sm"); | |
| pane.getChildren().addAll(table, list); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="visible-xs">...<div> <!--extra small--> | |
| <div class="visible-sm">...<div> <!--small--> | |
| <div class="visible-md">...<div> <!--medium--> | |
| <div class="visible-lg">...<div> <!--large--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Toolbar extraSmallToolbar = new Toolbar(...); | |
| extraSmallToolbar.getStyleClass().add("visible-xs"); | |
| Toolbar smallToolbar = new Toolbar(...); | |
| smallToolbar.getStyleClass().add("visible-sm"); | |
| Toolbar mediumToolbar = new Toolbar(...); | |
| mediumToolbar.getStyleClass().add("visible-md"); | |
| Toolbar largeToolbar = new Toolbar(...); |
OlderNewer