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.
29 lines
1.1 KiB
29 lines
1.1 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<?import javafx.scene.control.*?>
|
|
<?import javafx.scene.layout.*?>
|
|
|
|
<?import javafx.geometry.Insets?>
|
|
<GridPane xmlns:fx="http://javafx.com/fxml" fx:controller="BaseConverterController"
|
|
alignment="center" hgap="10" vgap="10" >
|
|
<padding>
|
|
<Insets top="10" right="10" bottom="10" left="10"/>
|
|
</padding>
|
|
<!-- 输入标签和文本框 -->
|
|
<Label text="输入数字 (X):" GridPane.columnIndex="0" GridPane.rowIndex="0"/>
|
|
<TextField fx:id="txtNumber" GridPane.columnIndex="1" GridPane.rowIndex="0"/>
|
|
|
|
<Label text="原始进制 (R1):" GridPane.columnIndex="0" GridPane.rowIndex="1"/>
|
|
<TextField fx:id="txtFromBase" GridPane.columnIndex="1" GridPane.rowIndex="1"/>
|
|
|
|
<Label text="目标进制 (R2):" GridPane.columnIndex="0" GridPane.rowIndex="2"/>
|
|
<TextField fx:id="txtToBase" GridPane.columnIndex="1" GridPane.rowIndex="2"/>
|
|
|
|
<!-- 转换按钮 -->
|
|
<Button text="转换" onAction="#handleConvert" GridPane.columnIndex="1" GridPane.rowIndex="3"/>
|
|
|
|
<!-- 结果标签 -->
|
|
<Label fx:id="lblResult" text="结果: " GridPane.columnIndex="1" GridPane.rowIndex="4"/>
|
|
|
|
</GridPane>
|