Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[javafx] confused on javafx status

 
Jesus Angeles
Ranch Hand
Posts: 2068
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Currently, I am studying javafx.

The sample codes in an older javafx book compiles and runs on the latest javafxpad. The codes include 'removed' javafx items like 'attribute'.

The same code doesnt compile in netbeans 6.7.1 (the latest), and on Eclipse Galileo using plugin.

I am so confused what is going on.

Outside of javafxpad, I cant seem to use Frame, etc., which works well on javafxpad.

I am hoping for any comments; before I lose all my hair on this.
 
Rob Spoor
Sheriff
Pie
Posts: 20608
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We're using the Swing / AWT forum for JavaFX, so moving there.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you say it doesn't compile, what do you mean exactly? The compile errors may actually tell you what is going on, to some extent. JavaFX changed quite a bit since its first release, including syntax. JavaFX started out as a pure interpreted language and now it is also a compiled language. Unfortunately, some of the syntax is different for each and that is probably what you are running into.
 
Jesus Angeles
Ranch Hand
Posts: 2068
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An example is the Frame. It used to be like in a package javafx.ui.*. It doesnt exist anymore.

In the Weaver book, it seems that the codes are for older versions. This is although the book was published not that long ago.

I am therefore shifting to a newer book by javafx pioneers - Clarke, Bruno, etc.

Even if the above is the latest, it still warns that the javafx specs may change anytime.

It does however look like I love the way it was before, where the Frame was the at the highest level and the code seems very declarative and xml-like.

We have no choice but to do it the Stage way now.

Happy Javafx-ing!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic