Answer the question
In order to leave comments, you need to log in
Why doesn't Gluon Scene Builder save fxml files?
Installed Gluon Scene Builder, loaded fxml file from my project. I slightly changed the location of the text fields, re-saved to the same file, but when the environment (IDEA) was launched, no changes occurred. I also tried to just save the fxml file from Scene Builder to another location on the hard drive (Save as), the file is stupidly not saved.
What could be the reason?
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.text.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="619.0" prefWidth="600.0" styleClass="background" stylesheets="@Style.css" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1">
<children>
<AnchorPane prefHeight="265.0" prefWidth="600.0" AnchorPane.bottomAnchor="354.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<children>
<TextField layoutX="350.0" layoutY="10.0" prefHeight="35.0" prefWidth="222.0" AnchorPane.leftAnchor="350.0" AnchorPane.rightAnchor="28.0" AnchorPane.topAnchor="49.0">
<font>
<Font size="16.0" />
</font>
</TextField>
<Label layoutX="20.0" layoutY="54.0" styleClass="text-label" stylesheets="@Style.css" text="Enter The Name" />
<Label layoutX="20.0" layoutY="109.0" styleClass="text-label" stylesheets="@Style.css" text="Enter The Last Name" />
<Label layoutX="20.0" layoutY="165.0" styleClass="text-label" stylesheets="@Style.css" text="Enter The Company Name" />
<Label layoutX="20.0" layoutY="218.0" styleClass="text-label" stylesheets="@Style.css" text="Enter Department Code" />
<TextField layoutX="350.0" layoutY="104.0" prefHeight="35.0" prefWidth="222.0" AnchorPane.leftAnchor="350.0" AnchorPane.rightAnchor="28.0" AnchorPane.topAnchor="104.0">
<font>
<Font size="16.0" />
</font>
</TextField>
<TextField layoutX="350.0" layoutY="160.0" prefHeight="35.0" prefWidth="222.0" AnchorPane.leftAnchor="350.0" AnchorPane.rightAnchor="28.0" AnchorPane.topAnchor="160.0">
<font>
<Font size="16.0" />
</font>
</TextField>
<TextField layoutX="350.0" layoutY="213.0" prefHeight="35.0" prefWidth="222.0" AnchorPane.leftAnchor="350.0" AnchorPane.rightAnchor="28.0" AnchorPane.topAnchor="213.0">
<font>
<Font size="16.0" />
</font>
</TextField>
</children>
</AnchorPane>
<Label layoutX="25.0" layoutY="273.0" lineSpacing="5.0" opacity="0.7" prefHeight="39.0" prefWidth="168.0" styleClass="department" stylesheets="@Style.css" text="Department Codes:" textFill="WHITE" underline="true">
<font>
<Font name="Lucida Sans Regular" size="16.0" />
</font>
</Label>
<Label layoutX="25.0" layoutY="310.0" opacity="0.7" styleClass="code-label" stylesheets="@Style.css" text="1.Sales" />
<Label layoutX="27.0" layoutY="338.0" opacity="0.7" styleClass="code-label" stylesheets="@Style.css" text="2.Development" />
<Label layoutX="28.0" layoutY="364.0" opacity="0.7" styleClass="code-label" stylesheets="@Style.css" text="3.Accounting" />
<Label layoutX="28.0" layoutY="390.0" opacity="0.7" styleClass="code-label" stylesheets="@Style.css" text="4.Management" />
<Label layoutX="28.0" layoutY="415.0" opacity="0.7" styleClass="code-label" stylesheets="@Style.css" text="5.Administration" />
<Label layoutX="28.0" layoutY="443.0" opacity="0.7" styleClass="code-label" stylesheets="@Style.css" text="0.None" />
<Button layoutX="261.0" layoutY="415.0" mnemonicParsing="false" styleClass="btn_result" stylesheets="@Style.css" text="SHOW RESULT" AnchorPane.leftAnchor="261.0" AnchorPane.rightAnchor="175.0" />
<AnchorPane layoutX="1.0" layoutY="468.0" prefHeight="152.0" prefWidth="600.0" AnchorPane.bottomAnchor="-1.0" AnchorPane.rightAnchor="-1.0" />
</children>
</AnchorPane>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question