You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
1003 B

<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.text.*?>
<AnchorPane xmlns:fx="http://javafx.com/fxml" fx:controller="FirstDemo.demoController">
<children>
<Label text="初始进制:" layoutX="30.0" layoutY="30.0"/>
<TextField fx:id="initialBaseField" layoutX="150.0" layoutY="30.0"/>
<Label text="要转换的数字:" layoutX="30.0" layoutY="80.0"/>
<TextField fx:id="numberToConvertField" layoutX="150.0" layoutY="80.0"/>
<Label text="目标进制:" layoutX="30.0" layoutY="130.0"/>
<TextField fx:id="targetBaseField" layoutX="150.0" layoutY="130.0"/>
<Label fx:id="resultLabel" layoutX="30.0" layoutY="180.0" prefWidth="300.0" wrapText="true" textAlignment="CENTER"/>
<Button text="转换" layoutX="80.0" layoutY="240.0"
prefWidth="240.0" prefHeight="45.0"
onAction="#convert"/>
</children>
</AnchorPane>