这些是我的表格栏目 课程和说明.如果单击一行(该行变为"活动"/突出显示),并按下" 删除"按钮,则应该删除该行,我该怎么做?
我的课程列的代码:(以及我添加到删除按钮的事件监听器?)
@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)