Skip to content

Commit 7b46da1

Browse files
committed
updated Readme and done some minor updates
1 parent 5cd1b05 commit 7b46da1

26 files changed

+1655
-17
lines changed

db_query/bookDB.txt Database_Query/bookDB.txt

+8-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#3 create a database with name 'bookdb' using following command.
66
create database bookdb;
77

8-
#4 select bookdb
8+
#4 select bookdb database.
99
use bookdb;
1010

1111
#5 copy-paste following lines in your database to create tables.
@@ -43,4 +43,11 @@ create table book_issue
4343
foreign key(book_isbn) references book(book_isbn)
4444
);
4545

46+
create table admin
47+
(
48+
admin_id varchar(20) primary key,
49+
password varchar(20)
50+
);
51+
52+
insert into admin values('akshat','123456');
4653
#6 we are all set.

README.md

+23-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#### The objective of this project is to learn Swing and jdbc.
44

5-
### The Library Management system provides following functionalities
5+
### The Library Management system provides following functionalities:
66

77
* Login
88
* Add a book
@@ -14,6 +14,15 @@
1414
* List Books issued to Student based on USN number
1515
* List books which are to be returned for current date
1616

17+
### Working
18+
19+
* A user can add book by providing the following information, title, ISBN (Book Number), category and Author information (Author Name and Phone Number).
20+
* Book search can be based on book title, or category or Author, when a book is found, entire information has to be printed on the screen. Partial searches to be supported (for example, if user searches by ‘ja’, ‘Java Complete Reference’, ‘Head First Java’ books) should be displayed.
21+
* A user can list all books present in the library and also the books issued to the students using their USN number.
22+
* A book can be issued to a student by first selecting a book from list of books and then selecting the student from the list of partial or complete search result. Also the date of issue is saved while issuing and return date is calculated (i.e. 7 days from issue date).
23+
* Also if the book is not in library, the user should be informed about the unavailability of the book.
24+
25+
1726
### Database Design
1827

1928
Book Table | -
@@ -53,7 +62,7 @@ Book ISBN | Foreign Key, References Book
5362
ADMIN Table | -
5463
--------------- | --------------------
5564
Admin Id | Varchar, Primary key
56-
Password |
65+
Password | Varchar
5766

5867
</br>
5968
</br>
@@ -117,5 +126,16 @@ Password |
117126
</br>
118127
</br>
119128

129+
### Tools and Technology used
130+
131+
* Programming language → java 8
132+
* Netbeans IDE
133+
* MariaDB(MySqL) [database](https://github.com/git-akshat/Library-Management/blob/master/Databse_Query/bookDB.txt)
134+
120135
### Reference Link:
121-
[How to create a cardLayout with netbeans GUI Builder](https://stackoverflow.com/questions/21898425/how-to-use-cardlayout-with-netbeans-gui-builder)
136+
[How to create a cardLayout with netbeans GUI Builder](https://stackoverflow.com/questions/21898425/how-to-use-cardlayout-with-netbeans-gui-builder)
137+
138+
### Demo
139+
* Install MariaDB and follow the steps given in [this](https://github.com/git-akshat/Library-Management/blob/master/Databse_Query/bookDB.txt) file.
140+
* Now download this project and go to [dist folder](https://github.com/git-akshat/Library-Management/tree/master/dist)
141+
* Double click on LibraryManagement.jar and here you go :)

build/built-jar.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Sat, 27 Jul 2019 12:21:46 +0530
1+
#Sat, 23 Nov 2019 21:47:52 +0530
22

33

4-
C\:\\Users\\Valar\ Morghulis\\Documents\\NetBeansProjects\\LibraryManagement=
4+
C\:\\Users\\AKSHAT\\Documents\\Important\\NetBeansProjects\\LibraryManagement=

build/classes/.netbeans_automatic_build

Whitespace-only changes.

build/classes/.netbeans_update_resources

Whitespace-only changes.
183 Bytes
Binary file not shown.
-45 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
3+
<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JDialogFormInfo">
4+
<Properties>
5+
<Property name="defaultCloseOperation" type="int" value="2"/>
6+
<Property name="title" type="java.lang.String" value="Add Student"/>
7+
</Properties>
8+
<SyntheticProperties>
9+
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
10+
<SyntheticProperty name="generateCenter" type="boolean" value="false"/>
11+
</SyntheticProperties>
12+
<AuxValues>
13+
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
14+
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
15+
<AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
16+
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
17+
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
18+
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
19+
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
20+
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
21+
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
22+
</AuxValues>
23+
24+
<Layout>
25+
<DimensionLayout dim="0">
26+
<Group type="103" groupAlignment="0" attributes="0">
27+
<Group type="102" attributes="0">
28+
<EmptySpace min="-2" pref="59" max="-2" attributes="0"/>
29+
<Group type="103" groupAlignment="0" attributes="0">
30+
<Component id="labelUsn" min="-2" pref="37" max="-2" attributes="0"/>
31+
<Component id="labelName" min="-2" pref="43" max="-2" attributes="0"/>
32+
</Group>
33+
<EmptySpace min="-2" pref="38" max="-2" attributes="0"/>
34+
<Group type="103" groupAlignment="0" attributes="0">
35+
<Component id="txtUSN" min="-2" pref="128" max="-2" attributes="0"/>
36+
<Component id="txtNAME" min="-2" pref="128" max="-2" attributes="0"/>
37+
</Group>
38+
<EmptySpace pref="101" max="32767" attributes="0"/>
39+
</Group>
40+
<Group type="102" alignment="1" attributes="0">
41+
<EmptySpace max="32767" attributes="0"/>
42+
<Component id="btnAddStudent" min="-2" max="-2" attributes="0"/>
43+
<EmptySpace min="-2" pref="137" max="-2" attributes="0"/>
44+
</Group>
45+
</Group>
46+
</DimensionLayout>
47+
<DimensionLayout dim="1">
48+
<Group type="103" groupAlignment="0" attributes="0">
49+
<Group type="102" alignment="0" attributes="0">
50+
<EmptySpace min="-2" pref="50" max="-2" attributes="0"/>
51+
<Group type="103" groupAlignment="3" attributes="0">
52+
<Component id="labelUsn" alignment="3" min="-2" pref="32" max="-2" attributes="0"/>
53+
<Component id="txtUSN" alignment="3" min="-2" pref="32" max="-2" attributes="0"/>
54+
</Group>
55+
<EmptySpace min="-2" pref="24" max="-2" attributes="0"/>
56+
<Group type="103" groupAlignment="3" attributes="0">
57+
<Component id="labelName" alignment="3" min="-2" pref="31" max="-2" attributes="0"/>
58+
<Component id="txtNAME" alignment="3" min="-2" pref="31" max="-2" attributes="0"/>
59+
</Group>
60+
<EmptySpace min="-2" pref="34" max="-2" attributes="0"/>
61+
<Component id="btnAddStudent" min="-2" max="-2" attributes="0"/>
62+
<EmptySpace pref="67" max="32767" attributes="0"/>
63+
</Group>
64+
</Group>
65+
</DimensionLayout>
66+
</Layout>
67+
<SubComponents>
68+
<Component class="javax.swing.JLabel" name="labelUsn">
69+
<Properties>
70+
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
71+
<Font name="Tahoma" size="14" style="0"/>
72+
</Property>
73+
<Property name="horizontalAlignment" type="int" value="0"/>
74+
<Property name="text" type="java.lang.String" value="USN"/>
75+
</Properties>
76+
</Component>
77+
<Component class="javax.swing.JLabel" name="labelName">
78+
<Properties>
79+
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
80+
<Font name="Tahoma" size="14" style="0"/>
81+
</Property>
82+
<Property name="horizontalAlignment" type="int" value="0"/>
83+
<Property name="text" type="java.lang.String" value="Name"/>
84+
</Properties>
85+
</Component>
86+
<Component class="javax.swing.JTextField" name="txtUSN">
87+
<Properties>
88+
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
89+
<Font name="Tahoma" size="14" style="0"/>
90+
</Property>
91+
</Properties>
92+
<Events>
93+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtUSNActionPerformed"/>
94+
</Events>
95+
</Component>
96+
<Component class="javax.swing.JTextField" name="txtNAME">
97+
</Component>
98+
<Component class="javax.swing.JButton" name="btnAddStudent">
99+
<Properties>
100+
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
101+
<Font name="Tahoma" size="14" style="0"/>
102+
</Property>
103+
<Property name="text" type="java.lang.String" value="Add"/>
104+
</Properties>
105+
<Events>
106+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnAddStudentActionPerformed"/>
107+
</Events>
108+
</Component>
109+
</SubComponents>
110+
</Form>
0 Bytes
Binary file not shown.
91 Bytes
Binary file not shown.
+160
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
3+
<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
4+
<Properties>
5+
<Property name="defaultCloseOperation" type="int" value="3"/>
6+
<Property name="title" type="java.lang.String" value="Welcome to SIT Library"/>
7+
</Properties>
8+
<SyntheticProperties>
9+
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
10+
<SyntheticProperty name="generateCenter" type="boolean" value="false"/>
11+
</SyntheticProperties>
12+
<AuxValues>
13+
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
14+
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
15+
<AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
16+
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
17+
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
18+
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
19+
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
20+
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
21+
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
22+
</AuxValues>
23+
24+
<Layout>
25+
<DimensionLayout dim="0">
26+
<Group type="103" groupAlignment="0" attributes="0">
27+
<Group type="102" attributes="0">
28+
<EmptySpace pref="100" max="32767" attributes="0"/>
29+
<Component id="jLabel1" min="-2" pref="476" max="-2" attributes="0"/>
30+
<EmptySpace min="-2" pref="155" max="-2" attributes="0"/>
31+
</Group>
32+
<Group type="102" alignment="0" attributes="0">
33+
<EmptySpace min="-2" pref="116" max="-2" attributes="0"/>
34+
<Component id="panelLogin" min="-2" max="-2" attributes="0"/>
35+
<EmptySpace max="32767" attributes="0"/>
36+
</Group>
37+
</Group>
38+
</DimensionLayout>
39+
<DimensionLayout dim="1">
40+
<Group type="103" groupAlignment="0" attributes="0">
41+
<Group type="102" alignment="0" attributes="0">
42+
<EmptySpace min="-2" pref="22" max="-2" attributes="0"/>
43+
<Component id="jLabel1" min="-2" pref="39" max="-2" attributes="0"/>
44+
<EmptySpace type="separate" max="-2" attributes="0"/>
45+
<Component id="panelLogin" min="-2" max="-2" attributes="0"/>
46+
<EmptySpace pref="51" max="32767" attributes="0"/>
47+
</Group>
48+
</Group>
49+
</DimensionLayout>
50+
</Layout>
51+
<SubComponents>
52+
<Component class="javax.swing.JLabel" name="jLabel1">
53+
<Properties>
54+
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
55+
<Font name="Tahoma" size="24" style="0"/>
56+
</Property>
57+
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
58+
<Color blue="99" green="0" red="99" type="rgb"/>
59+
</Property>
60+
<Property name="horizontalAlignment" type="int" value="0"/>
61+
<Property name="text" type="java.lang.String" value="Welcome to SIT Library"/>
62+
</Properties>
63+
</Component>
64+
<Container class="javax.swing.JPanel" name="panelLogin">
65+
<AccessibilityProperties>
66+
<Property name="AccessibleContext.accessibleName" type="java.lang.String" value=""/>
67+
</AccessibilityProperties>
68+
69+
<Layout>
70+
<DimensionLayout dim="0">
71+
<Group type="103" groupAlignment="0" attributes="0">
72+
<Group type="102" alignment="1" attributes="0">
73+
<EmptySpace min="-2" pref="73" max="-2" attributes="0"/>
74+
<Group type="103" groupAlignment="0" max="-2" attributes="0">
75+
<Component id="LabelAdmin" max="32767" attributes="0"/>
76+
<Component id="LabelPass" pref="70" max="32767" attributes="0"/>
77+
</Group>
78+
<EmptySpace min="-2" pref="21" max="-2" attributes="0"/>
79+
<Group type="103" groupAlignment="0" attributes="0">
80+
<Component id="txtAdminId" pref="163" max="32767" attributes="0"/>
81+
<Component id="txtPassword" max="32767" attributes="0"/>
82+
</Group>
83+
<EmptySpace min="-2" pref="167" max="-2" attributes="0"/>
84+
</Group>
85+
<Group type="102" alignment="0" attributes="0">
86+
<EmptySpace min="-2" pref="208" max="-2" attributes="0"/>
87+
<Component id="btnLogin" min="-2" pref="74" max="-2" attributes="0"/>
88+
<EmptySpace max="32767" attributes="0"/>
89+
</Group>
90+
</Group>
91+
</DimensionLayout>
92+
<DimensionLayout dim="1">
93+
<Group type="103" groupAlignment="0" attributes="0">
94+
<Group type="102" alignment="0" attributes="0">
95+
<EmptySpace min="-2" pref="67" max="-2" attributes="0"/>
96+
<Group type="103" groupAlignment="0" max="-2" attributes="0">
97+
<Component id="LabelAdmin" max="32767" attributes="0"/>
98+
<Component id="txtAdminId" pref="30" max="32767" attributes="0"/>
99+
</Group>
100+
<EmptySpace min="-2" pref="30" max="-2" attributes="0"/>
101+
<Group type="103" groupAlignment="3" attributes="0">
102+
<Component id="txtPassword" alignment="3" min="-2" pref="31" max="-2" attributes="0"/>
103+
<Component id="LabelPass" alignment="3" min="-2" pref="31" max="-2" attributes="0"/>
104+
</Group>
105+
<EmptySpace min="-2" pref="33" max="-2" attributes="0"/>
106+
<Component id="btnLogin" min="-2" pref="35" max="-2" attributes="0"/>
107+
<EmptySpace pref="68" max="32767" attributes="0"/>
108+
</Group>
109+
</Group>
110+
</DimensionLayout>
111+
</Layout>
112+
<SubComponents>
113+
<Component class="javax.swing.JLabel" name="LabelAdmin">
114+
<Properties>
115+
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
116+
<Font name="Tahoma" size="14" style="0"/>
117+
</Property>
118+
<Property name="text" type="java.lang.String" value="Admin ID:"/>
119+
</Properties>
120+
</Component>
121+
<Component class="javax.swing.JLabel" name="LabelPass">
122+
<Properties>
123+
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
124+
<Font name="Tahoma" size="14" style="0"/>
125+
</Property>
126+
<Property name="text" type="java.lang.String" value="Password:"/>
127+
</Properties>
128+
</Component>
129+
<Component class="javax.swing.JTextField" name="txtAdminId">
130+
<Properties>
131+
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
132+
<Font name="Tahoma" size="14" style="0"/>
133+
</Property>
134+
</Properties>
135+
<Events>
136+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtAdminIdActionPerformed"/>
137+
</Events>
138+
</Component>
139+
<Component class="javax.swing.JButton" name="btnLogin">
140+
<Properties>
141+
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
142+
<Font name="Tahoma" size="14" style="0"/>
143+
</Property>
144+
<Property name="text" type="java.lang.String" value="Login"/>
145+
</Properties>
146+
<Events>
147+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnLoginActionPerformed"/>
148+
</Events>
149+
</Component>
150+
<Component class="javax.swing.JPasswordField" name="txtPassword">
151+
<Properties>
152+
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
153+
<Font name="Tahoma" size="14" style="0"/>
154+
</Property>
155+
</Properties>
156+
</Component>
157+
</SubComponents>
158+
</Container>
159+
</SubComponents>
160+
</Form>
0 Bytes
Binary file not shown.
79 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)