This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JavaFX and the fly likes JavaFX Scene Builder Help with Charts and such Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JavaFX
Bookmark "JavaFX Scene Builder Help with Charts and such" Watch "JavaFX Scene Builder Help with Charts and such" New topic
Author

JavaFX Scene Builder Help with Charts and such

Jay Orsaw
Ranch Hand

Joined: Jun 14, 2011
Posts: 356

Hello all! I have just started playing around with the scene builder, because like in Netbeans the gui builders are great tools. Now when I try to make a chart I notice I cannot add series. There is nothing that I have found to do so. I'm guessing I have to do that with the FXML or...??? I haven't touched FXML yet, but I believe I should learn it. I've already made a chart with series using normal JavaFX code; however I am curious about the scene builder's capabilities and want to utilize them, as I can see from the roadmap

http://www.oracle.com/technetwork/java/javafx/overview/roadmap-1446331.html

We are going to see a lot more from the scene builder and netbeans.



edit: So after looking at it for a bit I figured out how it works with the xml file and @XFML tags in the controller class. Now I'm having an issue with my chart. How do I fill it? I set up a button to fill the data, then initialize the chart.


Controller




Xml



I had another class where when I pressed the button it would recreate the scene just like this and it would create a new graph... Not sure why it's not doing anything...

I ended up changing the numberAxis id's to yaxis and xaxis and wehen I click the button it would just disappear...... Weird.......
Jay Orsaw
Ranch Hand

Joined: Jun 14, 2011
Posts: 356

couldn't edit, but I figured out my issue, thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaFX Scene Builder Help with Charts and such