Вы находитесь на странице: 1из 22

|

Module: AAPP004-4-2-JP
Java Programming
Individual Assignment

Intake Code: UCDF1405ICT (SE)


Lecturer Name:
Due Date: 11 July 2016

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

1.0 Sample Output


Login Page

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 the payment fee for each house


unit. When the customer pay the admin will enter the
amount and click on pay.

Figure above show the pop out message state that


total payment and the current outstanding payment

Figure above show when the admin click on refresh button I will show
the latest payment details and user details.

Charge Payment for Users

Figure above sow the pop out screen when the admin
add the payment.

New Month Payment

Figure above show when admin click on NewMonth


button the new month payment for all house owners will
update.

Figure above shoe pop our screen when the


new month payment update successfully.

10

Delete Users

Figure above show the changes when the admin delete outdated
users account

Figure above show when users


account been deleted
successfully

11

Add New Users

Figure above show pop out message and the


interface when admin successfully add new users in
this system

12

Users Login and GUI

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

Figure above show the interface after


user click on logout button.

14

2.0 Sample code


In this system Object-Oriented Concept used in this resident management system. In
this system involve inheritance, constructor and encapsulation. Object Oriented also
combine data and Instructions for processing that data into a self-sufficient object that can
be used within a program or in other programs.

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

3.0 Additional Features


3.1Delete User

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

[Accessed 13 March 2016].


Chavan, Y., 2012. How to get mysql auto increment key value using java jdbc. [Online]
Available at: http://www.technicalkeeda.com/details/how-to-get-mysql-auto-increment-keyvalue-using-java-jdbc
[Accessed 22 March 2016].
Learn,

H.

Available

&.,
at:

2016.

Database

and

Java

Forms.

[Online]

http://www.homeandlearn.co.uk/java/databases_and_java_forms.html

[Accessed 6 March 2016].


NetBeans,

2016.

Available

Designing

Swing

at:

GUI

in

NetBeans

IDE.

[Online]

https://netbeans.org/kb/docs/java/quickstart-gui.html

[Accessed 1 February 2016].


Page,

T.,

2012.

Object

Oriented

Programming

Java

Tutorial.

[Online]

Available at: https://howtoprogramwithjava.com/object-oriented-programming-java-tutorial/


[Accessed 18 April 2016].

22

Вам также может понравиться