Javafx - how to add a button on the chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
venture
Posts: 5
Joined: Wed Sep 23, 2015 3:06 am
antibot: No, of course not.

Javafx - how to add a button on the chart

Post by venture » Mon Oct 19, 2015 2:47 am

I have seen some posts from a long time back about adding one or more buttons with ActionListeners attached but am not sure if this can be done (easily) with JavaFx version of JFreeChart.

My goal is to be able to provide the user with a way to change colours of XY series on the chart. I may have more than one chart open simultaneously but of course each chart would have its own buttons.

I am examining the ui part of JFreeChart but I guess the JavaFx adds some level I am not yet fully comfortable playing around.
My question is this: are there some examples of how to add a button when the JFreeChart is encapsulated in a JaxaFx window?

Locked