Slashdot Mirror


Oracle Open Sourcing JavaFX, Including iOS and Android Ports

hypnosec writes "Oracle is going to open source JavaFX ports for Android and iOS soon as a part of its efforts to open source the framework. JavaFX, destined to replace Swing GUI library as the default method to develop graphical user interfaces, is a framework used to develop cross-platform rich Internet applications. The ports for iOS and Android are based on an 'unreleased version of JavaSE Embedded for iOS/Android.' Oracle's Richard Bair revealed that the 'first bits and pieces' for JavaFX for iOS should probably be out sometime next week. The rest of the release will be scheduled along with the release of Prism (the next-generation toolkit). Oracle is going to keep javafx-font proprietary, but Bair has said developers are already working toward an open source native replacement of the component through the OpenJFX list."

20 of 105 comments (clear)

  1. Re:and i care by Compaqt · · Score: 2, Interesting

    Um, maybe because now there's a open source alternative to Flash for interactive Web applications? Yeah, Javascript.

    But why not have more options? Use as desired.

    I'm as disappointed in the Java security situation as anybody else, but the Slashdot knee-jerk anti-Java reaction is kind of dumb.

    --
    I'm not a lawyer, but I play one on the Internet. Blog
  2. Define 'soon' by DickBreath · · Score: 3, Interesting

    It is still early for April fools. This is Oracle which has had a series of sad missteps regarding open source. Since it's Oracle, I have to wonder "what's the catch".

    That said, if this really happens, then I suppose we will see Java FX really unencumbered and able to appear in Iced Tea and any other open source efforts?

    Would using Java FX on Android have any advantages over using the native Android user interface features? (I don't know about iOS, so I won't ask, but someone familiar with iOS could ask and answer that one.) One could say that an advantage of Java FX on Android is that it makes more code you wrote for the desktop / browser / iOS / etc more directly reusable on Android. But like Swing before it, does it also result in a 'least common denominator' user interface across platforms that doesn't perfectly match the conventions of any single platform?

    --

    I'll see your senator, and I'll raise you two judges.
    1. Re:Define 'soon' by Threni · · Score: 2, Insightful

      > Since it's Oracle, I have to wonder "what's the catch".

      They're trying to trick you into using Java, when everyone is dropping it as fast as they can!

    2. Re:Define 'soon' by Anonymous Coward · · Score: 2, Insightful

      There are plenty of alternatives if your top priority is not "cheap and plenty developers". Perl, Python, Smalltalk, C++. Yeah, C++ ! A couple of highly skilled C++ developers will create the same functionality at the same total cost (development, testting, maintenance, cost of operations) as the Java folks will deliver.

      The only "problem" in the corporate world is that they want "affordable" developers and compromise on everything else. So they save some money on the short run and then pay big dollars/euros on hardware and maintenance afterwards.

      I assume the average PHB can't accept that a proper software engineer has the same or higher hourly rate as the PHB himself.

    3. Re:Define 'soon' by DickBreath · · Score: 2

      Oracle doesn't really get open source. They'll open source something. Then expect you to pay for it. Or sue you for using an independent implementation of it. (See Oracle vs Google because Google used Apache Harmony, an independent implementation of Java to build Android, after Sun open sourced Java.) Oracle will expect you to pay for Hudson or OpenOffice.org, or will seem to believe that they "own" it and have absolute "control" over it. That is why we now have Jenkins and LibreOffice.

      --

      I'll see your senator, and I'll raise you two judges.
  3. JavaFX replaces Swing? by _xeno_ · · Score: 3, Informative

    Huh, who knew. Last I checked, JavaFX was built on top of Swing. Apparently that may have changed with 2.0.

    Or maybe not. I can't tell.

    But one thing seems pretty clear from screenshots: your JavaFX applications will fit in with the native desktop just about as well as your Swing applications did. Which is to say, "not at all."

    --
    You are in a maze of twisty little relative jumps, all alike.
  4. "GUI File" is the Future by RedHackTea · · Score: 3, Interesting

    I've always thought that having GUI files is the way to go instead of in code. I'm fine with XML (FXML in this case), but I'm sure some others have gripes and may prefer property files/etc. But how nice would it be to have an XML standard for all GUIs? Then all you have to do is load one XML file across GTK+, Qt, X11, Windows, Cocoa, and even OpenGL. Example:

    <window width="300" height="300">
    <edit width="100" height="20" value="Type name." />
    <button width="50" height="50" value="Submit" />
    </window>

    Then do the logic in whatever language you want. I know it's a pipe dream with several problems, but damn it would be nice.

    --
    The G
    1. Re:"GUI File" is the Future by Anonymous Coward · · Score: 2, Informative

      But how nice would it be to have an XML standard for all GUIs?

      You mean like XHTML + CSS?

    2. Re:"GUI File" is the Future by characterZer0 · · Score: 3, Insightful

      "GUI File" is fine right up until your application gets more complex than a simple login page.

      --
      Go green: turn off your refrigerator.
    3. Re:"GUI File" is the Future by Bogtha · · Score: 2

      But how nice would it be to have an XML standard for all GUIs?

      Not very. Firefox does this with XUL. Different platforms have different conventions, you don't want the same interface across all of them. For instance, Android apps typically have menus that pop up from the bottom, whereas this isn't the norm on iOS. Sure, you'd have the same interface from the programmer's perspective, but from the user's perspective, your app works differently to all their other apps.

      --
      Bogtha Bogtha Bogtha
    4. Re:"GUI File" is the Future by White+Flame · · Score: 2

      Any standard that demands such specific width & height values be manually entered and numerically described is pointless. UI specs need to deal with general layout role indications, not try to lock into pixel-perfect "dumb" layouts that cannot manage being rendered with different fonts, resolutions, or aspect ratios.

  5. Re:and i care by Threni · · Score: 3, Insightful

    Let's just focus on Javascript, and leave this other crap outside (flash, activex, java). We don't need it. I try and use a page wihch requires Java on Linux and I get warnings about how IcedTea isn't working. I click on the link to update it, but I get taken to a Wiki page...like I'm going to spend my evening searching for a solution. (It `just works` under Windows). I used to spend a lot of time playing with Linux, but I can't be bothered any more.

  6. Re:Define 'everyone' by DickBreath · · Score: 2

    Not everyone is dropping Java. Java is heavily used in enterprise systems. The JVM (virtual machine) is one of the most amazingly well engineered machines ever created.

    I don't know where you just don't like the word Java, or whether you don't like the language, or whether you don't like Applets in the browser, or what. But the Java ecosystem is way larger than you imagine.

    --

    I'll see your senator, and I'll raise you two judges.
  7. Re:and i care by SplashMyBandit · · Score: 3, Insightful

    Computing is more than just the Web. Javascript is ok for web stuff. Crap for rich clients with functionality that doesn't work well over the network, usually because the datasets are too big (eg. CAD, GIS, graphics/photography, simulations). There is still an ernomous space for rich client technologies like JavaFX, and JavaFX 2 looks really nice and has some great built in styles and effects. It's also pretty easy to program if you are used to Swing.

  8. JavaFX 2 nice evolution for Swing by SplashMyBandit · · Score: 3, Informative

    JavaFX 2 is a nice evolution for those used to Swing (yes, yes, many don't like Swing, but you simply can't beat Swing for power and flexibility once you get some experience in it). It has a much nicer default styling than even Nimbus for Swing, and great built in aesthetic effects (hence the "FX") that mostly get switched on with a simple boolean property. JavaFX makes the same mistake as Swing in that there are no standard Calendar/Date controls, yet just about every application needs these. Fortunately you can use one of the third party controls, or even embed your existing Swing applications into your JavaFX app. That's pretty funky stuff.

  9. Re:Define 'everyone' by swillden · · Score: 2

    I can assure you Java would fall flat on it's face (in fact it and the companies that bet on it did...) if you tried to handle securities trading volumes

    Or if you tried to run really massive-scale web sites on it, like, say, Google. Oops... much of Google is built with Java, including plenty of performance-critical code.

    Java works just fine at really large scale, and at extremely high transaction volumes. It tends to require more RAM than a comparable system built with C or C++, but performance is close to identical assuming good engineering of both -- and it generally requires less effort in Java than in C or C++, even when you include the tuning efforts required to get maximum efficiency out of Java.

    --
    Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
  10. Re:and i care by squiggleslash · · Score: 3, Insightful

    I'm aware of Open JDK, but seeing that the code is targeted for Linux, I don't see that as a truly open solution for most users.

    Well, that's a shame, because if you don't use the same definition of the word "open" as the rest of us we can't actually answer your question. We have no way of saying "Well, there's FoozleJava 3.X", and you then responding, "No, I'm saying I want it to be truly open", and us saying "But there are ports to every platform in existance, and it's under the GPL", and you saying "Yes, but I'm using my definition of the word open, and that means it has to be compatible with the Microsoft Public License.

    And after we go around in circles a few times, we throw our hands up in exasperation.

    OpenJDK is free software. It's licensed under a free license. It is built using a community model of development, albeit one steered by Oracle. And to answer your concern, which seems to be more about portability than openness, it's largely POSIX code and has been ported to the BSDs (cite: https://wikis.oracle.com/display/OpenJDK/BSDPort)

    --
    You are not alone. This is not normal. None of this is normal.
  11. WPF by kervin · · Score: 2

    Look up http://en.wikipedia.org/wiki/Xaml and it's use in WPF.

  12. Re:Apple says wait a minute... by gl4ss · · Score: 3, Funny

    Doesn't matter. You can't run Java on iOS can you? Hence, JavaFX won't run on an iPhone or iPad.

    And flash neither?

    You stupid fucks. It'll work so that you bundle the jvm into your app - and this is totally acceptable for apple as long as you don't allow loading of new portions to it from the outside.

    on another note - a lot of sensible desktop java programs do this as well.

    (this doesn't mean that anyone should give a fuck about JavaFX).

    --
    world was created 5 seconds before this post as it is.
  13. Re:NOT by jonabbey · · Score: 2

    I've gone 15 years developing on the JVM and never seen it crash. What JVM were you using? Were you using JNI and native libraries alongside it?