2013-02-17 28 views

回答

1

右键单击场景构建器中的根节点,然后选择复制。并将其粘贴到任何文本编辑器中。

enter image description here

出来放:

<Group id="sb-clipboard" xmlns:fx="http://javafx.com/fxml"> 
    <fx:define> 
    <AnchorPane id="AnchorPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0"> 
     <children> 
     <Button id="button1" layoutX="140.0" layoutY="104.0" mnemonicParsing="false" text="Button" /> 
     <RadioButton id="radioButton1" layoutX="283.0" layoutY="172.0" mnemonicParsing="false" text="RadioButton" /> 
     <ToggleButton id="toggleButton1" layoutX="94.0" layoutY="234.0" mnemonicParsing="false" text="ToggleButton" /> 
     </children> 
    </AnchorPane> 
    </fx:define> 
</Group> 
+0

嗯,这大概没有超过保存和打开文件速度更快,但我想这是唯一的解决方法,所以感谢:-)悲的是一个直接代码视图不存在。 – 2013-02-18 10:06:11