I created in NetBeans a system of customer registration and movie registration (simulating a video store). I have 3 Java files: Rental (main), Client and Movie. In Client and Movie, I connect to the database, enter the values, everything cute. The question is: How do I, when I run the application, and access Client / Movie, JTable
if it populate with pre-stored database data.
For example: I open the application, insert a data (remembering that what appears in JTable
does not come from the database, but a simple getText()
), they go to the database, and close the application. Then when I open it again, JTable
is empty, although the data I entered earlier is in the database. I want a way to get the bank's data and throw it in JTable
to keep it updated.