JavaFX ListView 使用及样式设置
发布时间
阅读量:
阅读量
1、新建一个fxml界面文件,里面就放置一个ListView
与之对应的控制器为ListViewTestController,而相关的CSS配置文件则为ListViewTest.css
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.ListView?>
<?import javafx.scene.layout.VBox?>
<VBox alignment="CENTER" stylesheets="@../css/ListViewTest.css" xmlns="http://javafx.com/javafx/8"
xmlns:fx="http://javafx.com/fxml/1"
fx:controller="com.nii.desktop.controller.ListViewTestController">
<children>
<ListView fx:id="studentListView" maxWidth="500.0" minWidth="500.0" prefHeight="300.0" prefWi
全部评论 (0)
还没有任何评论哟~
