Академический Документы
Профессиональный Документы
Культура Документы
Module: AAPP004-4-2-JP
Java Programming
Individual Assignment
Student Name:
Student ID: TP
Table of Contents
1.0 Sample Output........................................................................................... 4
Login Page..................................................................................................... 4
Admin GUI..................................................................................................... 5
Search........................................................................................................... 6
Payement method......................................................................................... 7
Charge Payment for Users............................................................................ 9
New Month Payment................................................................................... 10
Delete Users................................................................................................ 11
Add New Users............................................................................................ 12
Users Login and GUI.................................................................................... 13
2.0 Sample code............................................................................................ 15
2.1Inheritance............................................................................................. 15
2.2 Constructor........................................................................................... 17
2
|
2.2
3.0
Encapsulation.................................................................................... 18
Additional Features...............................................................................20
3.1Delete User............................................................................................ 20
4.0
Assumptions......................................................................................... 21
5.0 Reference................................................................................................. 22
Figure 1 shows login page of this system. Firstly, there are two text fields show on the
login page. It requires user to insert their username and password to access to system.
Figure 1.2 show sample login input. On Apartment# the users have to
enter their login ID and in Password filed the users have to insert
correct password to login in this system. Due to security purpose the
password files have been hide to avoid other know users passwords.
Admin GUI
Figure 4 shows the main page after staff logged in. There are
nine buttons shown below in the main page that are Add,
Edit, Delete, Pay! , Charge, Search, New Month,
Refresh, Back .The back button is for users to log out the
system when press on it. Administrator or staff able to register
a new member by insert house unit, password, name, email
Search
Figure 1.2 show the search features I this system. To find the house
owner profile the admin have to enter the House Unit number and
click on Search
Payement method
Figure above show when the admin click on refresh button I will show
the latest payment details and user details.
Figure above sow the pop out screen when the admin
add the payment.
10
Delete Users
Figure above show the changes when the admin delete outdated
users account
11
12
Figure above show sample login input. On Apartment# the users have
to enter their login ID and in Password filed the users have to insert
correct password to login in this system. Due to security purpose the
password files have been hide to avoid other know users passwords.
Figure above show once the house owner login into this system will
appear their monthly balance and payment details
13
14
2.1Inheritance
Figure above shows the sample code of inheritance that used in this system. The
code that highlighted above represent javax.swing.JFrame is a superclass, while
start is a subclass.
15
Figure above shows the sample code of inheritance that used in this system. The
code that highlighted above represent javax.swing.JFrame is a superclass, while
MyDash is a subclass.
Figure above shows the sample code of inheritance that used in this system. The
code that highlighted above represent javax.swing.JFrame is a superclass, while
Balance is a subclass.
16
2.2 Constructor
Figure above shows the sample code of constructor that used in this system.
Moreover, constructor has ability to create an instance of a class, it also called as
creating an object.
17
2.2Encapsulation
Encapsulation in Java or object oriented programming language is a concept
which enforces protecting variables, functions from outside of class, in order to
better manage that piece of code and having least impact or no impact on other
parts of a program due to change in protected code
18
19
administrator is able to select any row of registered user from the right side table, and click
on Delete User button in order to delete the users from the system. If users press on
Delete, the selected users will be removed permanently.
20
4.0 Assumptions
21
5.0 Reference
Chang, 2008. Populate data from database into JTable in Netbeans. [Online]
Available
at:
http://chang.advits.com/populate-data-from-database-into-jtable-in-netbeans
H.
Available
&.,
at:
2016.
Database
and
Java
Forms.
[Online]
http://www.homeandlearn.co.uk/java/databases_and_java_forms.html
2016.
Available
Designing
Swing
at:
GUI
in
NetBeans
IDE.
[Online]
https://netbeans.org/kb/docs/java/quickstart-gui.html
T.,
2012.
Object
Oriented
Programming
Java
Tutorial.
[Online]
22