Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Setting JavaFX 8 Scene Fill/Color on OSX

AdamBJun 10 2014 — edited Jun 13 2014

No problem setting background color for layouts, e.g.

bdrPn.setBackground(new Background((new BackgroundFill(Color.BLACK, CornerRadii.EMPTY, Insets.EMPTY))));

But neither of the following are working for me, running JavaFX 8 on latest OS-X

scene = new Scene(bdrPn, winW, winH, Color.BLACK);

scene.setFill(Color.BLACK);

scene.setFill() worked fine for previous versions of JavaFX. Any advice?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 11 2014
Added on Jun 10 2014
14 comments
19,351 views