mystyle-java-fx-tools/src/main/resources/fxml/base-64.fxml

39 lines
2.6 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.Separator?>
<?import javafx.scene.control.TextArea?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.AnchorPane?>
<AnchorPane prefHeight="649.0" prefWidth="1200.0" xmlns="http://javafx.com/javafx/19"
xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.zhangmeng.tools.controller.Base64Controller">
<children>
<Label layoutX="169.0" layoutY="102.0" text="普通字符串:" AnchorPane.leftAnchor="169.0"/>
<TextField fx:id="text_filed" layoutX="300.0" layoutY="98.0" prefHeight="25.0" prefWidth="270.0"
AnchorPane.leftAnchor="300.0" AnchorPane.topAnchor="98.0"/>
<Button fx:id="button" layoutX="600.0" layoutY="98.0" mnemonicParsing="false" text="转换"
AnchorPane.leftAnchor="600.0"/>
<Label layoutX="169.0" layoutY="160.0" text="base64字符:"/>
<TextArea fx:id="textArea1" layoutX="300.0" layoutY="160.0" prefHeight="121.0" prefWidth="619.0"
AnchorPane.leftAnchor="300.0" AnchorPane.rightAnchor="281.0" AnchorPane.topAnchor="160.0"/>
<Label layoutX="169.0" layoutY="369.0" text="base64字符:" AnchorPane.leftAnchor="169.0"
AnchorPane.rightAnchor="918.0"/>
<Separator layoutX="56.0" layoutY="317.0" prefHeight="5.0" prefWidth="1200.0" AnchorPane.leftAnchor="0.0"
AnchorPane.rightAnchor="0.0"/>
<TextField fx:id="text_filed1" layoutX="300.0" layoutY="365.0" prefHeight="25.0" prefWidth="619.0"
AnchorPane.leftAnchor="300.0" AnchorPane.rightAnchor="281.0"/>
<Button fx:id="button1" layoutX="930.0" layoutY="365.0" mnemonicParsing="false" text="转换"
AnchorPane.rightAnchor="230.0"/>
<TextArea fx:id="textArea2" layoutX="300.0" layoutY="429.0" prefHeight="121.0" prefWidth="619.0"
AnchorPane.leftAnchor="300.0" AnchorPane.rightAnchor="281.0"/>
<Label layoutX="169.0" layoutY="429.0" text="普通字符串:" AnchorPane.leftAnchor="169.0"
AnchorPane.rightAnchor="918.0"/>
<TextField layoutX="758.0" layoutY="98.0" AnchorPane.rightAnchor="281.0" fx:id="text_file"/>
<Button layoutX="930.0" layoutY="98.0" mnemonicParsing="false" text="转换" AnchorPane.rightAnchor="230.0" onAction="#convert_to_base64"/>
<Button layoutX="691.0" layoutY="98.0" mnemonicParsing="false" text="图片" AnchorPane.rightAnchor="454.0"
fx:id="file_choose_button" onAction="#choose_file"/>
</children>
</AnchorPane>