社区
Eclipse
帖子详情
javafx实现 listView
hold_msd
2015-05-23 08:46:08
我希望实现的listView里每个item不止有一项内容,比如我需要时间,标题这些从数据库里取出来的东西组成一个item,我要怎么做,(不是android)
...全文
412
1
打赏
收藏
javafx实现 listView
我希望实现的listView里每个item不止有一项内容,比如我需要时间,标题这些从数据库里取出来的东西组成一个item,我要怎么做,(不是android)
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
1 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
u012342084
2016-06-07
打赏
举报
回复
你可以参考一下
http://www.javafxchina.net/blog/2015/04/doc03_list-view/
1. 设置你的列表的“单元格渲染器”: list.setCellFactory((ListView<MyItem> item) -> new MyItemCell()); 2. 定义渲染器: class MyItemCell extends ListCell<MyItem> 3. 重写渲染器的update方法: @Override public void updateItem(MyItemitem, boolean empty) { super.updateItem(item, empty); VBox v = new VBox(); // 设置一个显示为单元格的组件 if (item != null) { //往VBox中添加内容 setGraphic(v); } else { setGraphic(null); } }
HEX / RGB 颜色转换工具
颜色转换工具
组合式专用铣齿机床设计(论文 CAD图纸).rar
组合式专用铣齿机床设计(论文 CAD图纸).rar
AI Challenger 2018 阅读理解赛道代码分享.zip
一款 AI 辅助阅读器,三栏设计
实现
笔记、阅读、对话同屏交互,让深度阅读更高效
易语言源码多任务同时下载源码
易语言源码多任务同时下载源码
Artix-7-XC7A35T-DDR3开发板硬件参考设计资料
源码下载地址: https://pan.quark.cn/s/3a6709c3f9be This is a TPYboard You can get started right away by writing your Python code in 'main.py'. For a serial prompt: - Windows: you need to go to 'Device manager', right click on the unknown device, then update the driver software, using the 'tpybcdc.inf' file found on this drive. Then use a terminal program like Hyperterminal or putty. - Mac OS X: use the command: screen /dev/tty.usbmodem* - Linux: use the command: screen /dev/ttyACM0 Please visit http://www.tpyboard.com/help/ for further help. Designed by TurnipSmart in Shandong!
Eclipse
58,441
社区成员
49,459
社区内容
发帖
与我相关
我的任务
Eclipse
Java Eclipse
复制链接
扫一扫
分享
社区描述
Java Eclipse
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章