Aravind Prasad wrote: . . . Below is how the functionality works.
1. Login Screen
2. Successful Login will take to a MDI Form
3. Click the menu, a JInternalFrame will open in the JDestopPane.
4. JInternalFrame has a JTable.
5. JInternalFrame has a JButton available for adding new data.
6. When JButton is clicked, a new JInternalFrame is popped up with some JTextField and JButton to save the data.
7. After saving the data (after insert query), a JDialog is opened to upload Logo (update query for BLOB), There are two buttons in the JDialog, one is for uploading the image, another one is uploading it later.
8. The logo is displayed in the JDialog and if the JButton, for upload is pressed, update the database and reload the JTable in the JInternalFrame is called. . . .
Ignore 95% of that. Focus on how to pass things to the database. That is all the functionality you want. And the way to get that is to remove all the GUI code and run your commands from the command line. No buttons no internal frames only command line.
Go through the
Java Tutorials about databases. Run your code until you can reliably pass an UPDATE command and have the database correctly updated. Then you can add a GUI.