Advertisement
TheBestLettuce

javafx

Mar 10th, 2023
1,065
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.71 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <?import javafx.scene.control.Button?>
  4. <?import javafx.scene.image.Image?>
  5. <?import javafx.scene.image.ImageView?>
  6. <?import javafx.scene.layout.AnchorPane?>
  7.  
  8. <AnchorPane prefWidth="0.0" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.kbjavafxproject.TileHexController">
  9.    <children>
  10.       <ImageView fitHeight="50.0" fitWidth="43.25">
  11.          <image>
  12.             <Image url="@assets/hex.png" />
  13.          </image>
  14.       </ImageView>
  15.       <Button fx:id="button" layoutX="4.0" layoutY="13.0" mnemonicParsing="false" onAction="#onButtonClick" prefHeight="25.0" prefWidth="36.0" text="Button" />
  16.    </children>
  17. </AnchorPane>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement