Advertisement
Guest User

GridPane.fxml

a guest
Jun 7th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.51 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. <GridPane gridLinesVisible="true" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/8">
  8.   <columnConstraints>
  9.     <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
  10.     <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
  11.       <ColumnConstraints halignment="RIGHT" minWidth="200.0" prefWidth="200.0" />
  12.   </columnConstraints>
  13.   <rowConstraints>
  14.     <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
  15.     <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
  16.     <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
  17.   </rowConstraints>
  18.    <children>
  19.       <VBox alignment="TOP_RIGHT" GridPane.columnIndex="2" GridPane.rowSpan="3">
  20.          <children>
  21.             <ImageView fitHeight="150.0" fitWidth="200.0" pickOnBounds="true" preserveRatio="true">
  22.                <image>
  23.                   <Image url="@2.jpg" />
  24.                </image>
  25.             </ImageView>
  26.             <ImageView fitHeight="150.0" fitWidth="200.0" pickOnBounds="true" preserveRatio="true">
  27.                <image>
  28.                   <Image url="@2.jpg" />
  29.                </image>
  30.             </ImageView>
  31.          </children>
  32.       </VBox>
  33.    </children>
  34. </GridPane>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement