javafx의 listview 구현시 이것저것 확인해 보기 위한 listView.fxml 입니다.
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.String?>
<?import javafx.collections.FXCollections?>
<?import javafx.scene.control.ListView?>
<?import javafx.scene.layout.AnchorPane?>
<AnchorPane prefHeight="300.0" prefWidth="500.0" xmlns="http://javafx.com/javafx/8.0.65" xmlns:fx="http://javafx.com/fxml/1" fx:controller="application.MainController">
<children>
<ListView fx:id="listView" layoutX="181.0" layoutY="14.0" prefHeight="274.0" prefWidth="307.0">
<items>
<FXCollections fx:factory="observableArrayList">
<String fx:value="Item 1" />
<String fx:value="Item 2" />
<String fx:value="Item 2" />
<String fx:value="Item 2" />
<String fx:value="Item 2" />
<String fx:value="Item 2" />
<String fx:value="Item 2" />
<String fx:value="Item 2" />
<String fx:value="Item 2" />
<String fx:value="Item 2" />
<String fx:value="Item 2" />
<String fx:value="Item 2" />
<String fx:value="Item 2" />
<String fx:value="Item 2" />
<String fx:value="Item 2" />
<String fx:value="Item 2" />
<String fx:value="Item 2" />
<String fx:value="Item 2" />
<String fx:value="Item 2" />
<String fx:value="Item 2" />
<String fx:value="Item 3" />
<String fx:value="Item 4" />
</FXCollections>
</items>
</ListView>
</children>
</AnchorPane>
'개발 > JavaFX' 카테고리의 다른 글
javafx scene 위에 popup 띄우기 (0) | 2017.05.12 |
---|---|
javafx control 들 offset 구하기. 모니터 크기 application 창 크기 구하기 (0) | 2017.05.12 |
javafx virtual keyboard 자동 바운스 간격 조절 처리. (0) | 2017.05.12 |
javafx Scene Builder TableView test data (0) | 2017.01.09 |