hi i am making a car rental software using NetBeans 8.0.2 i am facing a problem i have created a jForm and inside it a jTable with 4 button and 6 text areas each text area represents a table section in my database they are all fully connected to eachother
i need to create a button to update, to insert and delete row in the jTable and automatically update it to the MySQL this is my code:
You really should not be mixing jdbc code with swing code. Write a DAO layer (can be just one class) that knows nothing about swing and test that you can create, read,update, delete records successfully before plugging it into your interface code. Also, you should be doing all the database connection code on a thread separate from your user interface thread. Read up on how to use the SwingWorker to achieve that.
posted 4 years ago
im kinda new to programming and i need to create a car rental software do you have any suggestions?