background - JavaFX2 : can not mix some "setStyle" on Pane -
description on windows7 , jdk1.8.0_20, try display panes black border , given background color. using "setstyle" method that, following documentation http://docs.oracle.com/javafx/2/api/javafx/scene/doc-files/cssref.html#region . problem code within testpane class. see below full running code : package pane; import javafx.application.application; import javafx.scene.scene; import javafx.scene.layout.borderpane; import javafx.scene.paint.color; import javafx.scene.text.text; import javafx.stage.stage; public class borderpaneapp extends application { public static void main(string[] args) { launch(args); } @override public void start(stage primarystage) { primarystage.settitle("borderpane"); mainpane mainpane = new mainpane(); scene scene = new scene( mainpane, 400, 300, color.orange); // layout mainpane.prefheightproperty().bind(scene.heightproperty()); mainpane.prefwidthproperty().bind(scene.widthproperty()); primaryst...