The main objective of developing this DB Application Java Project is to create powerful database application using java programming language.
Find the below steps to create DB Application Java Project effeciently without any bugs.
How to set up the “DBApplication“project:
- At first must be creating a database in mysql.
- Put or set your database name in DataBaseInformation java class in com.dbmanagement.bean package.
How to run the “DBApplication“ project:
- To open the main window you must be put the mysql database userid and password. After entering the login credentials press ‘Enter’ or click on ‘Login’ button. If userid or password is wrong then it displays alert message.
- It shows the main window with four buttons ‘Create Table’, ‘View Table’, ‘Update Table, ‘Run Query’. All section is described below.
- Create Table:
- Displays the one row where you should enter the field name, type, length etc after entering all information please press ‘Tab’ key on the ‘Primary Key’ column for add a new field of the table.
After all data enter put the table name and press ‘Save’ to create a new table in the database.
- Click on ‘Cancel’ button returns to the main window.
- View Table:
- Select any table from selection box and click on ‘View Button’ displays the all records of the selected table.
- Click on ‘Exit’ button returns to the main window.
- Update Table:
It displays two tabs, one design to displays the design structure of particular table and another is data to displays the data of particular table.
- Design: select any table from selection box and click on ‘View’ Button displays the design structure of the selected table.
- To alter the selected table name enter the new table name in the text field and click on ‘Rename Table’ button.
- Click on ‘Add’ button to add the new column of the selected table.
- Modify any table field and click on ‘Edit’ to alter that field. Select any row and then modify that column and click on ‘Edit’ button to modify the column name.
- Select any field and click on ‘Delete’ button to delete the existing field.
- Click on ‘Cancel’ button to return to previous state.
- Click on ‘Exit’ button returns to the main window.
- Click on ‘Add’ button to add the new record of the selected table.
- Modify any table record and click on ‘Edit’ to alter that record.
- Data: select any table from selection box and click on ‘View’ Button displays the all records of the selected table
You can not change or modify primary key field data.
- Select any record and click on ‘Delete’ button to delete the existing record.
- Click on ‘Cancel’ button to return to previous state.
- Click on ‘Exit’ button returns to the main window.
- Run Query:
- Please type the query in query text field and click on ‘Run Query’ then it displays the result below in table format on the basis of query. If you does not enter any query and press on ‘Run Query’ button then it displays the alert box.
- Click on ‘Exit’ button returns to the main window.