SlideShare a Scribd company logo
ATHLONE IT
Java Project 4-2
Final report
Dmitrius ponomarenko
11-Mar-15
Athlone IT,NetworkManagement&CloudInfrastructure 4,Software Design4-2
Description
The program designedto presentmultifunctional interface forthe libraryusers.The programhasa
multiple windows.The firstwindowwill give the choice forusertologinasa normal user or as a staff
user.To loginas a registereduser,the userwillbe requiredenterusername and password. If userhas
not beenregisteredeat,itwill needcreate hisaccountandthenloginas a registereduser. Afterlogin
success,the usual userwill getaccessto the interface whichallow him/hersearchthe librarybya book
title orauthor name, checkthe numberof available copiesandtheylocation.The staff will cana search/
add/delete/updatethe booksinthe librarystock,handoutor take back the books.
Program architecture
Main frame
Welcome Frame
User login Frame
Usernames and
passwords
collection
Staff login Frame
Username and
password
collection
class
UserName
Password
Class
UserName
Password
Staff Frame
Books collection
Class Books
User Frame
Use book
collection
Using classes
GUI Frames
 Welcome Frame
 UserLoginFrame
 StaffLoginFrame
 UserFrame
 StaffFrame
Collectionclasses
 UserNamePassword
 Books
PopupWindows
 InfoFrame
 searchBooks
Functionality
1. WelcomeFrame (mainframe),give a
choice loginasa useror as a staff worker.To
loginasa libraryuserpress<user>button,to
loginasa staff press<staff>button.
The <user> buttonwill call UserLoginFrame
class,see codesbellow,the <staff>button
will call StaffLoginFrame class,see codes
bellow:
textField
textField_1
JButton
2. In staff loginframe, youneed enterusername in<textField>window andpasswordin
<textField_1>window andpress<Login>button. The buttonwill runthe search(string,string)
function,the <search>functionwill check<UserNamePassword>collectionformatchesandif it
foundthe match itwill call <StaffFrame>if there nomatchesthe userwill get warningmessage
that his/herusername orpassword isincorrectandwill be asked torepeatprocedure,see codes
above.
The user loginframe hasa similarfunctionality withone extrafunction.Thisfunctionallowfor
newusercreate hisaccount. The new usermust enterthe username that he/she willuse inthe
future andpasswordand press<New User> button.The <New User> buttonwill make actionto
add newusername andpassword intothe <UserNamePassword>collection,see codesbellow.
3. In the <StaffFrame>usercan searchlibrarystock bya booktitle orauthor name. To searchby
title orauthor name userhave enterthe booktitle or authorname to the <fieldText>window
and presssearchbutton. The search buttonwill call the searchfunctions,the firstwillcheckthe
librarybythe booktitle andif bookwill found displayAuthorname in<textField_1>, Title in
<textField_2>,total numbof copiesin<textField_3>,numbrof available copiesin<textField_4>
and booklocationin<textField_5>.If bookwasnot foundbya title thenthe programwill run
secondsearchfunctionwhichwill make asearchbyauthor name and if foundwill store each
bookof thisauthorin a List andthendisplayedinpopupwindow.
See codesbellow:
JMenuBarwhit
insert/delete/update
items
textField
textField_1
textField_2
textField_3
textField_4
textField_5
comboBox (1-10)
textField_6
Group of JRadioButtons
If the userwill needstoupdate the librarystock,forexampledelete orupdate existingbook,itswill
have firstsearchfor that bookand if successthenuser can delete thatbookbyclicking<delete>inthe
top rightcorner menu.The <update>functionallow foruserupdate existingbooknumberof copiesand
booklocation,Toupdate bookuserwill needsearchforthat bookand itwill foundthenchange number
of copiesbyselectingnewnumberfrom<comboBox>(1-10) andenternew locationtothe
<textField_6>andpress<update> inthe top rightcorner <CRUD> menu.To addnew bok into the
librarystockthe user will needenter Authorname in<textField_1>,title in<textField_2>, total numbof
copiesin<textField_3>,numberof availablecopiesin<textField_4>and booklocationin<textField_5>
and press<insert>inthe <CRUD> menu.
See codesbellow:
Delete:
Insert:
Update:
Alsothe staff workerwill be responsible forhandoutthe booksfor usersandtakingthemback. To hand
out the bookthe staff userwill needfirstsearchstockforthat book,if foundtickthe <take book>
RadioButton andpress<Take/Return>button.The programwill extractone fromnumberof available
booksand save itas a newavailable number.If there isnoavailablecopiesinthe stockthe programwill
displaywarningmessage.If the userwantreturnthe bookback to the library,the staff workerwill need
searchstock for that bookandthentick the <return book> RadioButtonandpress<Take/Return>
button.The program will addsone copyto the existingnumberof copiesandsave new value.Toclear
all entriesuserneedpress<clier>button,toexitpress<exit>button.
4. The UserFrame will allowforlibrarycustomersearchthe booksinthe stockby Authorname or
booktitle.The UserFrame will use existingBookHashSet.Afterpress<search>buttonthe
program will create newobjectof StaffFrame classwhichwill lettouse <search> and <display>
functionsfromStaffFrame class.
See codesbellow:
Other
In thisassignmentwere usedfew extrajavafurthersuch as,<DefaulListModel>thatisa implementation
of the ListModel thatextendsfromAbstractListModel. Thisallow store datatothe JList andthen display
it.AlsoI use the ButtonGroupfurtherof java .The ButtonGroupclassis responsible tomake sure only
one buttonis selected(bydeselectingothersinthe group).
Conclusion
OverthisassignmentIgota goodbasic knowledge of Javaprograming,whichwillactas a good
foundationforcontinuingforthe Javasubject.

More Related Content

DOCX
Library Management System Project Report
PPTX
Extension lecture on java project and software enggineering
DOC
Library manaementreport1
PDF
IP project for class 12 cbse
PDF
3. Section 3 � Complete functionality on listing screen (1.5 marks.pdf
PPTX
Library Management System
PPT
Chapter 5 GUI for introduction of java and gui .ppt
PDF
PDF ON JAVA - JFC CONCEPT
Library Management System Project Report
Extension lecture on java project and software enggineering
Library manaementreport1
IP project for class 12 cbse
3. Section 3 � Complete functionality on listing screen (1.5 marks.pdf
Library Management System
Chapter 5 GUI for introduction of java and gui .ppt
PDF ON JAVA - JFC CONCEPT

Similar to Java project (20)

PPTX
GUI programming
PPTX
Unit – I-AWT-updated.pptx
PPTX
Online birth certificate system and computer engineering
PDF
1. Section1.- Populating the list of persons on the person listing f.pdf
PDF
1. Section1.- Populating the list of persons on the person listing.pdf
PPT
java swing programming
PDF
66781291 java-lab-manual
PPTX
Gui programming a review - mixed content
DOCX
Mi0041 java and web design
DOCX
Mi0041 java and web design
PPTX
LIBRARY BOOK ISSUE MANAGEMENT SYSTEM.pptx
PDF
Ingles 2do parcial
PPTX
Java swing
PPTX
DOCX
Library system project file
PPTX
AWT stands for Abstract Window Toolkit. AWT is collection of classes and int...
PPTX
DOCX
New microsoft office word document
DOCX
c++ library management
GUI programming
Unit – I-AWT-updated.pptx
Online birth certificate system and computer engineering
1. Section1.- Populating the list of persons on the person listing f.pdf
1. Section1.- Populating the list of persons on the person listing.pdf
java swing programming
66781291 java-lab-manual
Gui programming a review - mixed content
Mi0041 java and web design
Mi0041 java and web design
LIBRARY BOOK ISSUE MANAGEMENT SYSTEM.pptx
Ingles 2do parcial
Java swing
Library system project file
AWT stands for Abstract Window Toolkit. AWT is collection of classes and int...
New microsoft office word document
c++ library management
Ad

Recently uploaded (20)

PDF
System and Network Administraation Chapter 3
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
AI in Product Development-omnex systems
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PPTX
Transform Your Business with a Software ERP System
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
System and Network Administraation Chapter 3
VVF-Customer-Presentation2025-Ver1.9.pptx
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
AI in Product Development-omnex systems
CHAPTER 2 - PM Management and IT Context
2025 Textile ERP Trends: SAP, Odoo & Oracle
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Transform Your Business with a Software ERP System
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
How to Choose the Right IT Partner for Your Business in Malaysia
How to Migrate SBCGlobal Email to Yahoo Easily
Design an Analysis of Algorithms I-SECS-1021-03
How Creative Agencies Leverage Project Management Software.pdf
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Operating system designcfffgfgggggggvggggggggg
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Ad

Java project

  • 1. ATHLONE IT Java Project 4-2 Final report Dmitrius ponomarenko 11-Mar-15 Athlone IT,NetworkManagement&CloudInfrastructure 4,Software Design4-2
  • 2. Description The program designedto presentmultifunctional interface forthe libraryusers.The programhasa multiple windows.The firstwindowwill give the choice forusertologinasa normal user or as a staff user.To loginas a registereduser,the userwillbe requiredenterusername and password. If userhas not beenregisteredeat,itwill needcreate hisaccountandthenloginas a registereduser. Afterlogin success,the usual userwill getaccessto the interface whichallow him/hersearchthe librarybya book title orauthor name, checkthe numberof available copiesandtheylocation.The staff will cana search/ add/delete/updatethe booksinthe librarystock,handoutor take back the books. Program architecture Main frame Welcome Frame User login Frame Usernames and passwords collection Staff login Frame Username and password collection class UserName Password Class UserName Password Staff Frame Books collection Class Books User Frame Use book collection
  • 3. Using classes GUI Frames  Welcome Frame  UserLoginFrame  StaffLoginFrame  UserFrame  StaffFrame Collectionclasses  UserNamePassword  Books PopupWindows  InfoFrame  searchBooks Functionality 1. WelcomeFrame (mainframe),give a choice loginasa useror as a staff worker.To loginasa libraryuserpress<user>button,to loginasa staff press<staff>button. The <user> buttonwill call UserLoginFrame class,see codesbellow,the <staff>button will call StaffLoginFrame class,see codes bellow:
  • 4. textField textField_1 JButton 2. In staff loginframe, youneed enterusername in<textField>window andpasswordin <textField_1>window andpress<Login>button. The buttonwill runthe search(string,string) function,the <search>functionwill check<UserNamePassword>collectionformatchesandif it foundthe match itwill call <StaffFrame>if there nomatchesthe userwill get warningmessage that his/herusername orpassword isincorrectandwill be asked torepeatprocedure,see codes above. The user loginframe hasa similarfunctionality withone extrafunction.Thisfunctionallowfor newusercreate hisaccount. The new usermust enterthe username that he/she willuse inthe future andpasswordand press<New User> button.The <New User> buttonwill make actionto add newusername andpassword intothe <UserNamePassword>collection,see codesbellow.
  • 5. 3. In the <StaffFrame>usercan searchlibrarystock bya booktitle orauthor name. To searchby title orauthor name userhave enterthe booktitle or authorname to the <fieldText>window and presssearchbutton. The search buttonwill call the searchfunctions,the firstwillcheckthe librarybythe booktitle andif bookwill found displayAuthorname in<textField_1>, Title in <textField_2>,total numbof copiesin<textField_3>,numbrof available copiesin<textField_4> and booklocationin<textField_5>.If bookwasnot foundbya title thenthe programwill run secondsearchfunctionwhichwill make asearchbyauthor name and if foundwill store each bookof thisauthorin a List andthendisplayedinpopupwindow. See codesbellow:
  • 6. JMenuBarwhit insert/delete/update items textField textField_1 textField_2 textField_3 textField_4 textField_5 comboBox (1-10) textField_6 Group of JRadioButtons If the userwill needstoupdate the librarystock,forexampledelete orupdate existingbook,itswill have firstsearchfor that bookand if successthenuser can delete thatbookbyclicking<delete>inthe top rightcorner menu.The <update>functionallow foruserupdate existingbooknumberof copiesand booklocation,Toupdate bookuserwill needsearchforthat bookand itwill foundthenchange number of copiesbyselectingnewnumberfrom<comboBox>(1-10) andenternew locationtothe <textField_6>andpress<update> inthe top rightcorner <CRUD> menu.To addnew bok into the librarystockthe user will needenter Authorname in<textField_1>,title in<textField_2>, total numbof copiesin<textField_3>,numberof availablecopiesin<textField_4>and booklocationin<textField_5> and press<insert>inthe <CRUD> menu. See codesbellow:
  • 8. Alsothe staff workerwill be responsible forhandoutthe booksfor usersandtakingthemback. To hand out the bookthe staff userwill needfirstsearchstockforthat book,if foundtickthe <take book> RadioButton andpress<Take/Return>button.The programwill extractone fromnumberof available booksand save itas a newavailable number.If there isnoavailablecopiesinthe stockthe programwill displaywarningmessage.If the userwantreturnthe bookback to the library,the staff workerwill need searchstock for that bookandthentick the <return book> RadioButtonandpress<Take/Return> button.The program will addsone copyto the existingnumberof copiesandsave new value.Toclear all entriesuserneedpress<clier>button,toexitpress<exit>button. 4. The UserFrame will allowforlibrarycustomersearchthe booksinthe stockby Authorname or booktitle.The UserFrame will use existingBookHashSet.Afterpress<search>buttonthe program will create newobjectof StaffFrame classwhichwill lettouse <search> and <display> functionsfromStaffFrame class. See codesbellow:
  • 9. Other In thisassignmentwere usedfew extrajavafurthersuch as,<DefaulListModel>thatisa implementation of the ListModel thatextendsfromAbstractListModel. Thisallow store datatothe JList andthen display it.AlsoI use the ButtonGroupfurtherof java .The ButtonGroupclassis responsible tomake sure only one buttonis selected(bydeselectingothersinthe group). Conclusion OverthisassignmentIgota goodbasic knowledge of Javaprograming,whichwillactas a good foundationforcontinuingforthe Javasubject.