Thank you for sharing the solution.
Type: Posts; User: Norm
Thank you for sharing the solution.
Which code are you having the problems with? You posted 3 separate sections of code.
Did you read the API doc for the getScene method? What did it say?
Don't post links to other sites for code. If you have code that compiles and executes for testing please paste here on the...
Please copy the contents of the API doc for the getScene method and paste it here so I can see what you are looking at.
I don't think it is a good idea to mix JavaFX code with Swing code.
Did you read the API doc for the getScene method? What did it say about returning a null value?
What does the API doc say about the values that VBox getScene method will return?
When does it return a null value?
Here is a link to a JavaFX API doc site: ...
I need this information to be able to give you any help:
What statement was the exception on?
What variable has the null value?
What does the API doc say about the values that VBox getScene...
What statement was the exception on?
What variable has the null value?
Please edit your post and wrap your code with code tags:
**YOUR CODE GOES HERE**