So. I'm using my own Material Design inspired library for developing with JavaFX. There's already one out there, but it uses FXML. I prefer doing everything on code, since, it seems Oracle dropped support for the FXML app some time ago (could have been re-supported by now, but I don't know).
I started making this library since July last year, but I haven't worked on it actively. However, I have it working good for what I've needed so far. For making a simple Material-like layout, I simply write something like this in the JavaFX's start method:
And I get this:
View attachment 52798
The toast appears when you click on the menu button, right next to the title in the action bar.
Commented code is in the first comment. It looked so red for my taste.
Please, comment, is it alright when it comes to Material Design? Any flaw on how it looks?
I started making this library since July last year, but I haven't worked on it actively. However, I have it working good for what I've needed so far. For making a simple Material-like layout, I simply write something like this in the JavaFX's start method:
Code:
@Override
public void start(Stage primaryStage) {
StackPane root=new StackPane();
MaterialDesign.getMaterialScene(primaryStage,root, 640, 480);
MaterialDesign.setExitOnClose(true);
MaterialEditableLayout layout=new MaterialEditableLayout(false) {
@Override
public void onMenuButtonPressed(Button button) {
new MaterialToast("I'm a toast!").unhide();
}
};
layout.setTitle("Material JavaFX");
root.getChildren().add(layout);
primaryStage.setTitle("Material Showcase");
primaryStage.show();
}
And I get this:
View attachment 52798
The toast appears when you click on the menu button, right next to the title in the action bar.
Commented code is in the first comment. It looked so red for my taste.
Please, comment, is it alright when it comes to Material Design? Any flaw on how it looks?
