|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 |
|
| 3 | +<?import javafx.geometry.Insets?> |
3 | 4 | <?import javafx.scene.control.Button?> |
4 | | -<?import javafx.scene.control.ChoiceBox?> |
| 5 | +<?import javafx.scene.control.ComboBox?> |
5 | 6 | <?import javafx.scene.control.Label?> |
| 7 | +<?import javafx.scene.control.SplitPane?> |
6 | 8 | <?import javafx.scene.control.TextArea?> |
7 | 9 | <?import javafx.scene.control.TextField?> |
8 | 10 | <?import javafx.scene.layout.AnchorPane?> |
| 11 | +<?import javafx.scene.layout.BorderPane?> |
| 12 | +<?import javafx.scene.layout.FlowPane?> |
| 13 | +<?import javafx.scene.layout.HBox?> |
| 14 | +<?import javafx.scene.layout.VBox?> |
9 | 15 |
|
10 | | -<AnchorPane fx:id="mainAnchorPane" prefHeight="379.0" prefWidth="654.0" xmlns="http://javafx.com/javafx/8.0.141" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.xwintop.xJavaFxTool.controller.littleTools.EncryptAndDecryptController"> |
| 16 | +<AnchorPane fx:id="mainAnchorPane" prefHeight="449.0" prefWidth="660.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.xwintop.xJavaFxTool.controller.littleTools.EncryptAndDecryptController"> |
11 | 17 | <children> |
12 | | - <Label layoutX="14.0" layoutY="64.0" text="明文:" /> |
13 | | - <Label layoutX="14.0" layoutY="264.0" text="密文:" /> |
14 | | - <TextArea fx:id="encrptyTextArea" layoutX="50.0" layoutY="14.0" prefHeight="181.0" prefWidth="364.0" /> |
15 | | - <TextArea fx:id="decrptyTextArea" layoutX="50.0" layoutY="206.0" prefHeight="166.0" prefWidth="364.0" /> |
16 | | - <Label layoutX="435.0" layoutY="25.0" text="字符集:" /> |
17 | | - <ChoiceBox fx:id="charsetsBox" layoutX="490.0" layoutY="21.0" prefHeight="23.0" prefWidth="138.0" /> |
18 | | - <Button fx:id="encrptyButton" layoutX="431.0" layoutY="348.0" mnemonicParsing="false" onAction="#encrptyAction" prefHeight="23.0" prefWidth="92.0" text="加密" /> |
19 | | - <Button fx:id="decrptyButton" layoutX="532.0" layoutY="348.0" mnemonicParsing="false" onAction="#decrptyAction" prefHeight="23.0" prefWidth="92.0" text="解密" /> |
20 | | - <Label layoutX="435.0" layoutY="325.0" text="密钥:" /> |
21 | | - <TextField fx:id="keyTextField" layoutX="477.0" layoutY="321.0" /> |
| 18 | + <BorderPane layoutX="14.0" layoutY="14.0" AnchorPane.bottomAnchor="10.0" AnchorPane.leftAnchor="10.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="10.0"> |
| 19 | + <center> |
| 20 | + <SplitPane dividerPositions="0.5" orientation="VERTICAL"> |
| 21 | + <items> |
| 22 | + <HBox> |
| 23 | + <children> |
| 24 | + <Label text="明文:" /> |
| 25 | + <TextArea fx:id="encrptyTextArea" HBox.hgrow="ALWAYS" /> |
| 26 | + </children> |
| 27 | + <padding> |
| 28 | + <Insets bottom="5.0" left="5.0" right="5.0" top="5.0" /> |
| 29 | + </padding> |
| 30 | + </HBox> |
| 31 | + <HBox> |
| 32 | + <children> |
| 33 | + <Label text="密文:" /> |
| 34 | + <TextArea fx:id="decrptyTextArea" HBox.hgrow="ALWAYS" /> |
| 35 | + </children> |
| 36 | + <padding> |
| 37 | + <Insets bottom="5.0" left="5.0" right="5.0" top="5.0" /> |
| 38 | + </padding> |
| 39 | + </HBox> |
| 40 | + </items> |
| 41 | + </SplitPane> |
| 42 | + </center> |
| 43 | + <top> |
| 44 | + <VBox spacing="5.0" BorderPane.alignment="CENTER"> |
| 45 | + <children> |
| 46 | + <HBox alignment="CENTER_LEFT" spacing="5.0"> |
| 47 | + <children> |
| 48 | + <Label text="字符集:" /> |
| 49 | + <ComboBox fx:id="charsetsBox" editable="true" /> |
| 50 | + <Label text="密钥:" /> |
| 51 | + <TextField fx:id="keyTextField" /> |
| 52 | + <Button fx:id="encrptyButton" mnemonicParsing="false" onAction="#encrptyAction" prefHeight="23.0" prefWidth="92.0" text="加密" /> |
| 53 | + <Button fx:id="decrptyButton" mnemonicParsing="false" onAction="#decrptyAction" prefHeight="23.0" prefWidth="92.0" text="解密" /> |
| 54 | + </children> |
| 55 | + <padding> |
| 56 | + <Insets bottom="5.0" /> |
| 57 | + </padding> |
| 58 | + </HBox> |
| 59 | + <FlowPane fx:id="cryptosFlowPane" hgap="5.0" vgap="5.0"> |
| 60 | + <padding> |
| 61 | + <Insets bottom="5.0" /> |
| 62 | + </padding> |
| 63 | + </FlowPane> |
| 64 | + </children> |
| 65 | + </VBox> |
| 66 | + </top> |
| 67 | + </BorderPane> |
22 | 68 | </children> |
23 | 69 | </AnchorPane> |
0 commit comments