Originally posted by mazumoto
View Post
Announcement
Collapse
No announcement yet.
Java 17 / OpenJDK 17 Hits GA With Maturing Vector API, Removal Planned For Applet API
Collapse
X
-
Originally posted by krzyzowiec View Post
I think he may be confusing the fact that it has a webview component with that being the basis of the toolkit, which it is not.
Comment
-
Originally posted by krzyzowiec View Post
I think he may be confusing the fact that it has a webview component with that being the basis of the toolkit, which it is not.
The point is jfx is like a web browser - you can even use CSS to style the UI components. Plus yes, it has the embedded WebView component so you can just embed a full Webkit, display a webpage and interact via JS. JFX is much more easier to port due to simpler architecture. Let me just quote Oracle, as they summed it up nicely in the docs:
"The Glass toolkit is also responsible for managing the event queue. Unlike the Abstract Window Toolkit (AWT), which manages its own event queue, the Glass toolkit uses the native operating system's event queue functionality to schedule thread usage. Also unlike AWT, the Glass toolkit runs on the same thread as the JavaFX application. In AWT, the native half of AWT runs on one thread and the Java level runs on another thread. This introduces a lot of issues, many of which are resolved in JavaFX by using the single JavaFX application thread approach."
Btw also part of this discussion - all of the java UI toolkits use GTK3 as a native backend in linux. This was always the case, although previously we had just GTK2 support and then it became a fallback path. https://openjdk.java.net/jeps/283
gstreamer is also used for media playback if anyone is wondering.
Comment
-
Originally posted by mdedetrich View PostYup, or basically sealed in scala (i.e. sealed abstract class or sealed trait) so you can get proper exhaustive checking in pattern matching
Comment
-
Originally posted by Leprechaunius View PostThe point is jfx is like a web browser - you can even use CSS to style the UI components. Plus yes, it has the embedded WebView component so you can just embed a full Webkit, display a webpage and interact via JS. JFX is much more easier to port due to simpler architecture. Let me just quote Oracle, as they summed it up nicely in the docs:
Comment
Comment