0

hey,

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.

Edited by trishtren

1
Contributor
1
Reply
3
Views
4 Years
Discussion Span
Last Post by trishtren
0

my bad, i was setting canvas size based on fxml values that are 0 on initialize. Just incase anyone has had a similar problem.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.