I want to insert data into a database i have made using jtextfields. i.e. When i type my name into the jtextfield1 and press jbutton1 (ok), the dtabase should get updated. How do i do this?
Seems like you don't fully understand buttons and events. I would highly suggest you read up on some tutorials and documentation then create another (hopefully valid) attempt. After you understand your program you can move on to saving/loading data. You also want to look into why you are using mysql? Why not flat files? (Binary, txt, cfg, etc etc)