Im having a problem adding a javafx Canvas node to the scrollpane node. Im using the .setcontent(canvas) method of the scrollpane and there are no syntax errors. The Scrollpane does expand in width (hbar appears longer) but it still looks empty.
I know the canvas is working correctly as if i add it directly using root.getchildren.add(canvas) it appears no problem.
Does javafx have a problem adding the canvas to a scrollpane? If not could anyone provide a very simple example on how to do it. And if so do you know of any alternatives?
Javafx 2.2 is the version im using.