2017-04-22 1 views
1

화면 빌더에 문제가 있습니다.
일부 fxml의 경우로드 후 크래시가 발생합니다. 나는 그것을 달릴 많은 시간을 보냈지 만 막았고, 나는 과정을 죽여야 만한다.JavaFX 장면 빌더 충돌

fxml은 정상이며 응용 프로그램에 내용이 올바르게 표시됩니다. 다음은 장면 빌더의 충돌을 일으키는 FXML 예제입니다.

<?xml version="1.0" encoding="UTF-8"?> 

<?import com.jfoenix.controls.JFXTabPane?> 
<?import javafx.scene.control.*?> 
<?import javafx.scene.layout.*?> 
<?import java.lang.String?> 
<?import java.net.URL?> 
<AnchorPane xmlns:fx="http://javafx.com/fxml/1" id="mainApplicationWindow" fx:id="mainApplicationWindow" 
      styleClass="mainAnchorPane, gt-screen" xmlns="http://javafx.com/javafx/8.0.112-ea" 
      fx:controller="com.genealogytree.client.desktop.controllers.implementation.PaneMainApplicationWindowController"> 
    <stylesheets> 
     <URL value="@/layout/style/gentree.css"/> 
    </stylesheets> 
    <children> 
     <SplitPane dividerPositions="0.2809364548494983" layoutX="139.0" layoutY="78.0" orientation="VERTICAL" 
        prefHeight="200.0" prefWidth="160.0" styleClass="gt-splitpane" AnchorPane.bottomAnchor="0.0" 
        AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"> 
      <items> 
       <AnchorPane maxHeight="220.0" minHeight="220.0" prefHeight="220.0"> 
        <children> 
         <JFXTabPane fx:id="gtMainTabPane" AnchorPane.bottomAnchor="10" AnchorPane.leftAnchor="20" 
            AnchorPane.rightAnchor="20" AnchorPane.topAnchor="10"> 
          <tabs> 
          </tabs> 
         </JFXTabPane> 
        </children> 
       </AnchorPane> 
       <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="100.0" prefWidth="160.0"> 
        <children> 
         <SplitPane dividerPositions="0.22690763052208834" layoutX="55.0" layoutY="46.0" 
            prefHeight="160.0" prefWidth="200.0" styleClass="gt-splitpane" 
            AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" 
            AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"> 
          <items> 
           <AnchorPane id="splitPaneHorizontal" maxWidth="250.0" minWidth="250.0" 
              prefWidth="250.0"> 
            <children> 

             <TableView fx:id="gtFamilyMemberTable" layoutX="20.0" layoutY="12.0" 
                onMouseClicked="#showInfoMember" prefHeight="200.0" prefWidth="200.0" 
                AnchorPane.bottomAnchor="50.0" AnchorPane.leftAnchor="10.0" 
                AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="5.0"> 
              <columns> 
               <TableColumn fx:id="simNameColumn" maxWidth="110.0" minWidth="110.0" 
                  prefWidth="-1.0" text="%simName"/> 
               <TableColumn fx:id="simSurnameColumn" maxWidth="110.0" minWidth="110.0" 
                  prefWidth="-1.0" text="%simSurname"/> 
              </columns> 
              <styleClass> 
               <String fx:value="firstTypeTable"/> 
               <String fx:value="tableMembersAndRelations"/> 
              </styleClass> 
             </TableView> 
             <TableView id="gtFamilyRelationTable" fx:id="gtFamilyRelationTable" 
                layoutX="20.0" layoutY="12.0" onMouseClicked="#showInfoRelation" 
                prefHeight="200.0" prefWidth="200.0" AnchorPane.bottomAnchor="50.0" 
                AnchorPane.leftAnchor="10.0" AnchorPane.rightAnchor="10.0" 
                AnchorPane.topAnchor="5.0"> 
              <columns> 
               <TableColumn fx:id="relationSimLeftColumn" maxWidth="85.0" 
                  minWidth="85.0" prefWidth="-1.0" text="%relation_sim"/> 
               <TableColumn fx:id="relationTypeColumn" maxWidth="50.0" minWidth="50.0" 
                  prefWidth="-1.0" text="%relation_type"/> 
               <TableColumn fx:id="relationSimRightColumn" maxWidth="85.0" 
                  minWidth="85.0" prefWidth="-1.0" text="%relation_sim"/> 

              </columns> 
              <styleClass> 
               <String fx:value="firstTypeTable"/> 
               <String fx:value="tableMembersAndRelations"/> 
              </styleClass> 
             </TableView> 
             <AnchorPane id="anchorToogleButtons" prefHeight="25.0" 
                AnchorPane.bottomAnchor="10.0" AnchorPane.leftAnchor="10" 
                AnchorPane.rightAnchor="10.0"> 
              <ToggleButton id="buttonShowMemberTable" fx:id="buttonShowMemberTable" 
                  layoutX="23.0" mnemonicParsing="false" 
                  prefWidth="114.0" styleClass="toogleButtonShowTable" 
                  text="Members" AnchorPane.bottomAnchor="0.0" 
                  AnchorPane.leftAnchor="0.0" AnchorPane.topAnchor="0.0"/> 

              <ToggleButton id="buttonShowRelationTable" fx:id="buttonShowRelationTable" 
                  layoutX="125.0" layoutY="12.0" mnemonicParsing="false" 
                  prefWidth="114.0" 
                  styleClass="toogleButtonShowTable" text="Relations" 
                  AnchorPane.bottomAnchor="0.0" AnchorPane.rightAnchor="0.0" 
                  AnchorPane.topAnchor="0.0"/> 
             </AnchorPane> 

            </children> 
           </AnchorPane> 
           <AnchorPane fx:id="workAnchorPane"> 
            <children> 
             <AnchorPane fx:id="workAnchorPaneContent" AnchorPane.bottomAnchor="50.0" 
                AnchorPane.leftAnchor="10.0" AnchorPane.rightAnchor="20.0" 
                AnchorPane.topAnchor="5.0"> 

             </AnchorPane> 
            </children> 
           </AnchorPane> 
          </items> 
         </SplitPane> 
        </children> 
       </AnchorPane> 
      </items> 
     </SplitPane> 
    </children> 
</AnchorPane> 
+0

아무도 모르게 ?? – VANILKA

답변

0

IDE에서 파일을 열기 전에 먼저 관리자로 SceneBuilder를 열어보십시오. 왜 이것이 작동하는지 모르지만 그것은 나에게 달려있어.

관련 문제