What's new

tutorial Database Application In Java

ah nou nhy mou

Moderator
Staff member
Moderator
Established
Awards
2
  • SikatPInoy Staff
  • medal 1
Database Application In JavaScreenshot_20200106-103541_Chrome.jpg

It’s a simple database application with a User Graphical Interface [GUI] that shows how to code the main four CRUD [Create, Retrieve, Update, Delete] operations. In this code you’ll learn how to do so many things like how to add, save, update, delete, search, connect to database and write a login class plus learn how to link classes in Java and understand Java and Database programming in general. I used AWT package and MS Access as my database and SQL for the queries.
Contents:-
1. Login
2. Register/Add record to database
3. Search and display record from database
4. Update data in database
5. Delete data from database
6. Connect to MS Access database
In order to run the project, you must first configure your database to the Data Source [ODBC] Driver.
Steps:-
Start -> Control Panel -> Administrative tools -> Data Sources(ODBC) -> Click Add button then select Microsoft Access Driver(*.mdb) then -> Click Finish -> On the Dialog window, fill the Data Source Name field with the name of the database and that is studentdb. -> Click the Select button to browse the database -> After browsing, Click OK-> OK -> Done.
You may now open Eclipse installed in your PC and import the Project.
Run the Login Class [Because it’s the only class I gave the main method]. Or simply just Run the JAR File I created.
Hope this code helps someone out there learn Java.... make programming fun! Enjoy coding.


#ahnounhymou
 

Attachments

DavidEspinosa

Administrator
Staff member
Administrator
V.I.P Member
Forum Keeper
Established
Technician
Awards
2
  • SikatPInoy Staff
  • admin medal
nice ganda nito salamat. keep sharing bro.
 
Top