小编Pim*_*Pim的帖子

如何从表列javafx中删除行

在此输入图像描述

这些是我的表格栏目 课程说明.如果单击一行(该行变为"活动"/突出显示),并按下" 删除"按钮,则应该删除该行,我该怎么做?

我的课程列的代码:(以及我添加到删除按钮的事件监听器?)

@SuppressWarnings("rawtypes")
TableColumn courseCol = new TableColumn("Course");
courseCol.setMinWidth(300);
courseCol.setCellValueFactory(new PropertyValueFactory<Courses, String>("firstName"));

final Button deleteButton = new Button("Delete");

deleteButton.setOnAction(.....
Run Code Online (Sandbox Code Playgroud)

java javafx tablecolumn

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

java ×1

javafx ×1

tablecolumn ×1