Jay Orsaw wrote:It seems wherever I read about it it talks about RIA(Rich Internet Applications) so is this all it does?
Jay Orsaw wrote:I was reading on here it's going to replace swing?
Jay Orsaw wrote:Does that mean it's a better gui builder than swing?
Jay Orsaw wrote:Is the code java code, or is it different?
Jay Orsaw wrote:I know there was JFX Script which was 1.0 I believe, and now 2.0 is in the API, so I would assume it's just normal Java code?
luck, db
There are no new questions, but there may be new answers.
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
Jay Orsaw wrote: As for swing being replaced by JavaFX https://coderanch.com/t/555539/Java-FX/java/JavaFX- Mohamed says that they are going to stop working on Swing and focus on FX. So we can assume that it will replace Swing according to Mohamed's info?
Jay Orsaw wrote: Also about the gui builder, on netbeans page for JavaFX there is something for 6.9 and a gui builder that looks really amazing. Im sorry i didnt specify clearly exactly what i was referring to. I also cannot link the location currently since im on my phone... i will update when my internet is back up
Jay Orsaw wrote: As you said the effects and rendering engine are great, but what i should have asked is how will it work with swing? Awt to me seems like the older style, and swing newer ( i believe there is something about lightweight/heavyweight containers or something like that? No idea what they mean :p).
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
Mohamed Sanaulla wrote:
Jay Orsaw wrote: As for swing being replaced by JavaFX https://coderanch.com/t/555539/Java-FX/java/JavaFX- Mohamed says that they are going to stop working on Swing and focus on FX. So we can assume that it will replace Swing according to Mohamed's info?
JavaFX and Swing would co-exist. Not like they can replace Swing because of the applications which have been built using Swing. But its not useful either to improvise and develop 2 different UI packages.
Jay Orsaw wrote: Also about the gui builder, on netbeans page for JavaFX there is something for 6.9 and a gui builder that looks really amazing. Im sorry i didnt specify clearly exactly what i was referring to. I also cannot link the location currently since im on my phone... i will update when my internet is back up
I am not sure if the builder was hugely popular. But then when I was worked on JavaFX long back (1 and early 1.2 time) there wasn't any builder. But there are few reports which say that development of a new GUI Builder is in progress OR its been completed OR its in its final stages.
Jay Orsaw wrote: As you said the effects and rendering engine are great, but what i should have asked is how will it work with swing? Awt to me seems like the older style, and swing newer ( i believe there is something about lightweight/heavyweight containers or something like that? No idea what they mean :p).
You can embed JavaFX content into Swing using a special panel. You can read about it in the tutorial here. Few developers have been putting in effort to embed Swing content into JavaFX(Read: thingsfx.com)
Cole Terry wrote:Hello guys,
I am currently interested in JavaFX 2.0, as I intend to upgrade a Swing app to JavaFX. Is it easier to replace Swing's buttons, text fields, labels on a JPanel by JavaFX equivalent components?
I have read an article on how to add JavaFX UI to Swing app, but look like it requires adding a completely new JFXPanel kind of thing into a JFrame, that would mean I may have to rewrite the GUI completely (
What do you think guys?
Jay Orsaw wrote:It seems wherever I read about it it talks about RIA(Rich Internet Applications) so is this all it does? I was reading on here it's going to replace swing? Does that mean it's a better gui builder than swing? Is the code java code, or is it different? I know there was JFX Script which was 1.0 I believe, and now 2.0 is in the API, so I would assume it's just normal Java code?
Patrick Martin wrote:
Jay Orsaw wrote:It seems wherever I read about it it talks about RIA(Rich Internet Applications) so is this all it does? I was reading on here it's going to replace swing? Does that mean it's a better gui builder than swing? Is the code java code, or is it different? I know there was JFX Script which was 1.0 I believe, and now 2.0 is in the API, so I would assume it's just normal Java code?
JavaFX uses a theater based on Stages and Scenes where the Stage abstracts away the differences in where the application is deployed.
So, in theory, the same application can run equally well within a browser or on the desktop as a result of this Stage metaphor/abstraction. The applet would, I guess, be the Stage for an internet application.
Having said that, I've only used JavaFX to run applications locally on the desktop and I have been quite happy with performance. Components such as file-choosers which were a bit sluggish in Swing run much faster within JavaFX from my experience.
I think that Swing and JavaFX will coincide for the foreseeable future. I predict that the cloudy future of Swing will drive more folks to JavaFX or away from the uncertainty of the Java GUI platform altogether. At some point, I would suspect that Oracle would stop investing in evolving Swing and simply port it from release to release.
Having said that, I think that finally after many years, JavaFX is on the right track with the 2.x roadmap. The winding path that it took to get here has lost it some credibility. However, Oracle seems to have finally decided a direction for the platform and seems to be fully committed to it's success. I was never a fan of learning JavaFX Script. I want to stay in Java, not spend time learning tiny domain specific languages.
- Pat
Jay Orsaw wrote:Apparently they are stopping support on Swing now though?
luck, db
There are no new questions, but there may be new answers.
Darryl Burke wrote:
Jay Orsaw wrote:Apparently they are stopping support on Swing now though?
I don't see support for Swing being removed in the foreseeable future. Swing has been declared to be in maintenance mode, which means that the only code changes will be bug fixes. Read my lips: No new API.
Paul Clapham wrote:My impression is that Java FX is still a work in progress (other opinions welcome). However my opinion is also that they are indeed working on it.
So in the short term you might find that you're assisting in identifying bugs in the product as well as your own bugs. But in the longer term, I suspect Java FX might be a good bet, since Oracle seems to be behind it. One thing about Swing: it has good tutorials. I see that Java FX has tutorials too, but I haven't looked at them at all.
This is awkward. I've grown a second evil head. I'm going to need a machete and a tiny ad ...
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|