Java 入門指南 V2.00 - EncryptorController.fxml




EncryptorController.fxml


<?xml version="1.0" encoding="UTF-8"?>

<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>

<AnchorPane id="AnchorPane" prefHeight="154.0" prefWidth="487.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="encryptor.EncryptorController">
    <children>
        <Button fx:id="button01" layoutX="33.0" layoutY="80.0" onAction="#newMethod" text="New" />
        <Label fx:id="label01" alignment="CENTER_RIGHT" layoutX="14.0" layoutY="14.0" minHeight="16" minWidth="69" text="Input:" />
      <Label fx:id="label02" alignment="CENTER_RIGHT" layoutX="14.0" layoutY="45.0" minHeight="16" minWidth="69" text="Output:" />
      <TextField fx:id="text01" layoutX="95.0" layoutY="9.0" prefHeight="26.0" prefWidth="365.0" />
      <TextField fx:id="text02" layoutX="95.0" layoutY="40.0" prefHeight="26.0" prefWidth="365.0" />
      <Button fx:id="button02" layoutX="89.0" layoutY="80.0" onAction="#loadMethod" text="Load" />
      <Button fx:id="button03" layoutX="149.0" layoutY="80.0" onAction="#saveMethod" text="Save" />
      <Button fx:id="button04" layoutX="208.0" layoutY="80.0" onAction="#encodeMethod" text="Encode" />
      <Button fx:id="button05" layoutX="281.0" layoutY="80.0" onAction="#decodeMethod" text="Decode" />
      <Button fx:id="button06" layoutX="356.0" layoutY="80.0" onAction="#clearMethod" text="Clear" />
      <Button fx:id="button07" layoutX="416.0" layoutY="80.0" onAction="#copyMethod" text="Copy" />
      <Label fx:id="label03" layoutX="43.0" layoutY="124.0" minHeight="16" minWidth="69" prefHeight="16.0" prefWidth="417.0" text="something happened.." />
    </children>
</AnchorPane>

the end

沒有留言: