Results 1 to 6 of 6
  1. #1
    ctullar is offline Member
    Join Date
    Jul 2015
    Posts
    2
    Rep Power
    0

    Default Java FXML, JavaFX, Swing?

    This is my first post on this forum. I hope to stay and soak up as much as I can...

    I have been a programmer in embedded assembly and VB for a number of years, but I am modernizing my toolkit and so have chosen Java to take on my next project. I am the sole programmer at my company so I don't have other programmers to bounce ideas off of or to help me, so I am trying to be very careful how I go about starting.

    It seems that Java Swing is on its way out, so I thought I should go for Java FX. The learning curve is steep enough for Java, and it seems straight-up Java FX would be twice the learning curve, so I have tentatively chosen to use Scene Builder in Netbeans to create Java FXML code.

    I am looking for pros and cons of this choice so I can concrete my decision and get started.

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: Java FXML, JavaFX, Swing?

    Hello there. Do take note of the forum's search box to get a wealth of pre-existing information on the subject of "JavaFX or Swing". Like this one that may or may not match exactly where you are coming from:

    http://www.java-forums.org/awt-swing...vs-javafx.html
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    Xen
    Xen is offline Member
    Join Date
    Jan 2015
    Posts
    86
    Rep Power
    0

    Default Re: Java FXML, JavaFX, Swing?

    Not sure. Let me recommend you pick a large amount of time just reading the java doc API, I mean the java API in its javadoc format, that you can read all over the web and download as a package.

    See, the advantage of Java is that it is a very well contained and scoped system. It is not all that big.. Of course there are very many technologies but Java SE (Standard Edition) is a small pretty thing. You don't need to dive outside of java.util. java.io and java.net (I guess) most of the time, in addition to java.lang, of course. The documentation is of excellent quality. If you are even a bit like me, reading it is just relaxing. I hope you will do well.

    I just wanted to point that out because a steep learning curve in Java was never my experience. And I do believe that Swing, while not having used it for MANY years (I haven't done any GUI programming in Java for like decades) is not a 'loss of investment'. You can't really go amiss with knowing a bit about Swing. JavaFX on the other hand is one of those technologies that you hope will work out well for you but you're never quite sure. I get the sensation it is a bit chaotic and less easy on the mind. That's just me, find your own path.

    I think it will be a matter of comfort for you. Will you be comfortable in JavaFX using your IDE? That is mostly the criterium or the deal-breaker.

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    12,059
    Rep Power
    25

    Default Re: Java FXML, JavaFX, Swing?

    Moved form New to Java to JavaFX.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  5. #5
    ctullar is offline Member
    Join Date
    Jul 2015
    Posts
    2
    Rep Power
    0

    Default Re: Java FXML, JavaFX, Swing?

    Well, I have found comparisons of Java Swing and Java FX, but my real question is whether to use Java FXML or Java FX. I have found very little on that - I mean, I have seen plenty of votes for Java FXML on sponsored websites, but not much on forums from people who are actually using it. I guess I am just looking for a good reason not to go with Java FXML.

  6. #6
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: Java FXML, JavaFX, Swing?

    They're one and the same. FXML is just part of the JavaFX package.

    Mastering FXML: About This Tutorial | JavaFX 2 Tutorials and Documentation

    Its basically the difference between designing the GUI with a structured XML layout, or through code. That's really personal taste, not something that someone can choose for you. Usually it is the smarter idea to begin completely with code to get a feel for how the API works and then later perhaps move on to the more declarative XML format - probably as a programmer you'll stick with the programmatic way of doing it.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. JavaFX vs. Swing
    By MW130 in forum New To Java
    Replies: 15
    Last Post: 03-05-2016, 06:45 PM
  2. Swing vs JavaFX?
    By KevinWorkman in forum AWT / Swing
    Replies: 22
    Last Post: 01-21-2015, 05:59 PM
  3. Diving into JavaFX from Swing
    By rru96 in forum JavaFX
    Replies: 1
    Last Post: 04-17-2014, 09:31 AM
  4. JavaFX Book | Learn JavaFX More In Depth
    By SnakeDoc in forum JavaFX
    Replies: 0
    Last Post: 05-17-2013, 11:10 PM
  5. JavaFX 2.0 and/or Swing
    By JavaPete in forum Forum Lobby
    Replies: 2
    Last Post: 10-25-2012, 09:36 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •