Thursday, May 24, 2012

Create TilePane using FXML

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

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

<TilePane fx:controller="javafxml.Sample" xmlns:fx="http://javafx.com/fxml"
    prefHeight="200" prefWidth="300" >
        
        <ImageView>
            <image>
                <Image url="http://goo.gl/kYEQl"/>        
            </image>
        </ImageView>
        <ImageView>
            <image>
                <Image url="http://goo.gl/kYEQl"/>        
            </image>
        </ImageView>
        <ImageView>
            <image>
                <Image url="http://goo.gl/kYEQl"/>        
            </image>
        </ImageView>
        <ImageView>
            <image>
                <Image url="http://goo.gl/kYEQl"/>        
            </image>
        </ImageView>
        <ImageView>
            <image>
                <Image url="http://goo.gl/kYEQl"/>        
            </image>
        </ImageView>
        <ImageView>
            <image>
                <Image url="http://goo.gl/kYEQl"/>        
            </image>
        </ImageView>
        
</TilePane>


Create TilePane using FXML


Related:
- Create TilePane using Java code
- TilePane in vertical


No comments:

Post a Comment