2012年11月30日
摘要: javafx中ListView默认样式是这样:怎样让它变成这样:(奇数行为白色,偶数行为绿色,选中为黄色,空白为白色)fx中支持css,因此实现很简单,只需要加入以下样式:.list-cell:even { -fx-background-color: white;}.list-cell:odd { -fx-background-color: green;}.list-cell:selected { -fx-background-color: yellow;}.list-cell:empty { -fx-background-color: white;}ListViewT... 阅读全文
posted @ 2012-11-30 16:09 韩细 阅读(4554) 评论(0) 推荐(0) 编辑