0
删除行这些都是我表列课程和说明。如果单击一行(该行变为“活动”/突出显示),并且他们按删除按钮它应该删除该行,我该怎么做?
的代码为我课程柱:(什么事件侦听器做我添加到我的删除按钮?)
@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(.....
顺便说一句:不要压抑原始类型:使用正确类型的表列和表视图。 –