New simple application using a simple database
i want to learn how to do a simple application using Java and a database.
1. A window which contains 2 text inputs and an "Submit" button.
The user types let's say his name and age, and after he clicks on "Submit", the data is stored into my database.
2. A second window which will contain one text input and the "OK" button.
After i type a random name, i want to print or display the data for that name (name and age).
Can you tell me where should i start?
P.S. I do know things related to panels, adding buttons to panels, etc.
What i don't know is how to work with databases, how to store and retrieve the data from databases.