Many thanks, I've been meaning to link your channel in featured but forgot. Done now, there is a lot of useful teaching material on your channel that is beneficial for people.
Hey Almas, nice and enjoyable video as always! I was wondering how the new javaFX JARs work, I know that now the project is no longer part of the standard JDK and that if you want to run the JAR by command line interface you need to specify the path to the javaFX libs. Is there an easy way to "include" these libs directly to JAR file, making it an easy click-on executable as in the good old days?
Thanks! The answer is kind of. Because of various java (and javafx) versions, the whole process is moving towards 0-dependency executables. For example, see this maven plugin: github.com/openjfx/javafx-maven-plugin Using it, one can produce a native no-dependency image that targets a single platform. The result is a click-on executable (extension depends on platform), but not a jar file. For example, see this video: th-cam.com/video/3lNQhbg1y4Y/w-d-xo.html
No reason, apart from the video aim, which was to demonstrate fully custom dialogs. However, for most purposes one should make use of the Dialog class: it already provides a ton of useful features.
I've created my custom dialog like this (but didn't animate). Pane { BorderPane { Top { Header } Center { content } Bottom { buttons } } } Is it a good design? Will any problem occur if I animate this Pane?
@@AlmasB0 When scaled the parent less than the required min size, all of the children remained unaffected and stayed where they were before the scaling. It looked like the nodes floating on the transparent parent.
This actually exists, have a look at github.com/JFXtras/jfxtras/blob/9.0/jfxtras-menu/src/main/java/jfxtras/scene/menu/CirclePopupMenu.java It pops up with multiple clickable circles (with images) around the cursor.
This is awesome!
Looking forward to more content like this.
Many thanks, I've been meaning to link your channel in featured but forgot. Done now, there is a lot of useful teaching material on your channel that is beneficial for people.
Thanks a lot, Sir.
Your works are really inspiring.
Hey Almas, nice and enjoyable video as always! I was wondering how the new javaFX JARs work, I know that now the project is no longer part of the standard JDK and that if you want to run the JAR by command line interface you need to specify the path to the javaFX libs. Is there an easy way to "include" these libs directly to JAR file, making it an easy click-on executable as in the good old days?
Thanks! The answer is kind of. Because of various java (and javafx) versions, the whole process is moving towards 0-dependency executables. For example, see this maven plugin: github.com/openjfx/javafx-maven-plugin Using it, one can produce a native no-dependency image that targets a single platform. The result is a click-on executable (extension depends on platform), but not a jar file. For example, see this video: th-cam.com/video/3lNQhbg1y4Y/w-d-xo.html
@@AlmasB0 Thank you, after several hours I managed to go through the well defined and self-explanatory maven errors 😂
very nice thank you
It's possible to do it in java swing?
How to make a fan animation using JavaFx ?
Is there any reason you didn't use the Dialog class?
No reason, apart from the video aim, which was to demonstrate fully custom dialogs. However, for most purposes one should make use of the Dialog class: it already provides a ton of useful features.
I've created my custom dialog like this (but didn't animate).
Pane {
BorderPane {
Top { Header }
Center { content }
Bottom { buttons }
}
}
Is it a good design? Will any problem occur if I animate this Pane?
Looks fine. What do you mean by "problem"? When a parent is animated, all of its children also inherit the transformation, so should be ok.
@@AlmasB0 When scaled the parent less than the required min size, all of the children remained unaffected and stayed where they were before the scaling. It looked like the nodes floating on the transparent parent.
did you try scenbuilder?
Can you make a circle popping window, so that it has buttons on it?! Something creative! And it pops up at the position of the mouse.
This actually exists, have a look at github.com/JFXtras/jfxtras/blob/9.0/jfxtras-menu/src/main/java/jfxtras/scene/menu/CirclePopupMenu.java
It pops up with multiple clickable circles (with images) around the cursor.