After digging around I've found this -
https://github.com/javafxports/openjdk-jfx/issues/477, which seems to suggest that someone else has spotted the same issue and reported it as a bug in open javafx.
I'm wondering if I can use in-line Java to correct the issue with the corrected code in that post
'....
// ok
StackedBarChart<String, Number> barChart2 = new StackedBarChart<String, Number>(xAxis, yAxis){
@Override protected void seriesChanged(ListChangeListener.Change<? extends Series> c) {}
};
'....
I am a bit out of my depth here though and don't know Java at all.
Should I be able use in-line java to correct this issue? If so, can someone please suggest how?
I've looked at the in-line java examples in the forums but can't figure it out. At present I've got
#If JAVA
import javafx.scene.chart.StackedBarChart;
@Override protected void seriesChanged(ListChangeListener.Change<? extends Series> c) ;
#End If
with the following in the sub that builds the chart
Dim jo As JavaObject = Me
jo.RunMethod("StackedBarChart", Null)
BarChart.AddSeries(Series1)
But I get the following error when compiling;
Compiling generated Java code. Error
B4J line: 282
End Sub
src\b4j\example\main.java:759: error: package ListChangeListener does not exist
@override protected void seriesChanged(ListChangeListener.Change<? extends Series> c); //{}
^
1 error