I have created a Java Application (Hardware Inventory Management System) in NetBeans 8.0.2 and it is working perfectly. It currently has 8 tables namely Desktops, Laptops etc. But these tables were created by me in PhpMyAdmin. Also the UI containing the panels, tables and radio buttons were put in by me in the JFrame form.
Presently this is fine but if I want to add new hardware in the future (eg. Printers) How do I add that functionality? I want my application to be able to create new tables and create the corresponding CRUD Tables, links from menus etc. How do I do that?
答案 0 :(得分:0)
为添加新硬件创建一个特殊界面: ADD硬件界面。
在此创建一个表单,其中包含新硬件的详细信息(例如打印机说)。
连接到数据库并运行创建表查询和相应的CRUD表查询,并在打印机表中插入所需的详细信息。
希望它有所帮助。