I need to extend a class ChartViewer, which does not have a no-arg constructor, with a class ChartViewerWrapper to add a no-arg constructor.
How would I go about doing this?
Currently the ChartViewer node cannot be used in FXML. I think the
only reason is because it does not have a constructor without
arguments (when I extended the ChartViewer class and added a simple
constructor without arguments, I could add my wrapper class into FXML
and it works).
provide a no-arg constructor in
ChartViewerWrapper and on its first line call
super (arg1, arg2);
ChartViewer has two parameters
ChartViewer's real constructor looks like