Forums Register Login

JavaFX Scene Builder Help with Charts and such

+Pie Number of slices to send: Send
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.......
+Pie Number of slices to send: Send
couldn't edit, but I figured out my issue, thanks!
+Pie Number of slices to send: Send
What was your solution, i am having the same problem?
Proudly marching to the beat of a different kettle of fish... while reading this tiny ad
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 12180 times.
Similar Threads
Creating charts
Where is JavaFx Headed?
The import javafx cannot be resolved
javafax, button action..NEED HELP PLEASE!!!
JavaFx internationalization
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 06:49:21.