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(.....
順便說一句:不要壓抑原始類型:使用正確類型的表列和表視圖。 –