如何AnchorPane使用Scene Builder 将背景图像添加到a ?
我试过它:
-fx-background-image url('C:/Users/Documents/page_background.gif')
Run Code Online (Sandbox Code Playgroud)
我如何在Scene Builder中设置它.
并生成的FXML:
<AnchorPane id="LoginAnchorPane" fx:id="LoginAnchorPane" prefHeight="400.0" prefWidth="600.0" style="-fx-background-image: url('C:/Users/Documents/page_background.gif');" xmlns="http://javafx.com/javafx/8.0.60" xmlns:fx="http://javafx.com/fxml/1" fx:controller="javafx_lsdu.LoginController">
Run Code Online (Sandbox Code Playgroud)
我试图在JavaFX.
我怎样才能做到JavaFX?
我是这个平台的新手,请给我一些指导。