Advertisement
Guest User

AnchorPane.fxml

a guest
Jun 7th, 2017
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.68 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <?import javafx.scene.image.*?>
  4. <?import java.lang.*?>
  5. <?import javafx.scene.layout.*?>
  6.  
  7.  
  8. <AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1">
  9.    <children>
  10.       <GridPane gridLinesVisible="true" layoutX="50.0" layoutY="30.0" AnchorPane.leftAnchor="0.0" AnchorPane.topAnchor="0.0">
  11.         <columnConstraints>
  12.           <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
  13.           <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
  14.         </columnConstraints>
  15.         <rowConstraints>
  16.           <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
  17.           <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
  18.           <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
  19.         </rowConstraints>
  20.       </GridPane>
  21.       <VBox alignment="TOP_RIGHT" layoutX="432.0" layoutY="14.0" prefHeight="200.0" prefWidth="100.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
  22.          <children>
  23.             <ImageView fitHeight="150.0" fitWidth="200.0" pickOnBounds="true" preserveRatio="true">
  24.                <image>
  25.                   <Image url="@2.jpg" />
  26.                </image>
  27.             </ImageView>
  28.             <ImageView fitHeight="150.0" fitWidth="200.0" pickOnBounds="true" preserveRatio="true">
  29.                <image>
  30.                   <Image url="@2.jpg" />
  31.                </image>
  32.             </ImageView>
  33.          </children>
  34.       </VBox>
  35.    </children>
  36. </AnchorPane>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement