13th Feb
[1] 添加一条记录 表单; 完成
[2] 减少一条记录---》成功 删除完成,记得 表单重新load!!!
ContextMenu 是属于某个 控制组件的; ContextMenu 里面可以包含 多个 MenuItem;每个MenuItem 键上需要加 text,onAction, id;
ContextMenu is a part of the JavaFX library. ContextMenu can be associated with controls such as labels, textfield etc. The context menu is activated on right clicking over the associated controls. It shows a popup containing several menuitems or sub menu.
https://www.geeksforgeeks.org/javafx-contextmenu-with-examples/
https://www.youtube.com/watch?v=5U0RfUb2Go0
[3] 暂时搁置 写入的问题;--》不过 算是半完成
[4] 看了一下 super;
super();The super() in Java is a reference variable that is used to refer parent class constructors.
//Basically this form of super is used to initialize superclass variables when there is no constructor present in superclass.
第一个用来指代父类 调用方法和参数;
https://www.geeksforgeeks.org/difference-between-super-and-super-in-java-with-examples/
[5] setCellFactory
https://www.bilibili.com/video/BV1Nb411N77M/?spm_id_from=333.788&vd_source=e8afff6d62e95d02f0e9a55400e70770w
完成
之后记得更新 listContextMenu 页面左上角的 展开栏