Overview

To establish a basic familiarity with the Java API (Swing and AWT packages) for creating graphical user interface (GUI) and handling events related to GUI. Students should apply the appropriate Java programming fundamentals, object-oriented, GUI and event handling concepts that they have learnt to solve the given problem.

Objectives

On completion of this assignment a student should be able to write a GUI application that:

  • Makes use of Java API "Swing" and "AWT" packages
  • Handles generated events
  • Makes use of layout manager to organize the GUI components
  • Comprises classes designed based on object-oriented concepts
  • Makes use of Java programming fundamentals

Scope

This assignment is based on individual effort. You are required to enhance the one player Java game application "Blackjack" done in Assignment 1 with Graphical User Interface (GUI).

Besides providing the required functionalities, your program should incorporate appropriate error handling. Comments are also to be inserted to improve program clarity. Before you start coding your program, you are strongly advised to carry out proper problem analysis and program design. You are required to use JDK 1.5 developer version or later.

Requirements

There are two modules in this program; Administration and Game Play module

Administration Module

Admin Login This dialogue box allows the admin to login to the system.

Admin Main menu Upon successful login, the administrator will be presented with the main menu. The administrator can then select the required task from the menu by clicking on the button.

You are to design the appropriate window dialogue box and screen based on the requirement for each task.

Game Play Module

Login The game starts by the player logging into the game.

Place Bet Upon logging in, the player will enter the game by placing the bet.

Play Game The game starts after the player click on “Play Now!”. First, the dealer will shuffles the deck.

Then the dealer deals two cards from the top of the deck to the player and itself.

The player needs to decide “Hit” or “Stand”. Assume the player selects “Hit”.

The player needs to decide “Hit” or “Stand”. Assume the player selects “Hit”.

The player needs to decide “Hit” or “Stand”. Assume the player selects “Stand”.

Next the dealer will continue with the game. First the dealer hits.

Then the dealer stands.

Finally, the dealer shows the hidden card.

And the game continues until the player exits the game.

Error Handling

Your program should be able to handle error situations like where a player enter wrong password or has insufficient chips. You should look out for other possible exceptions and handle them too.

Academic Honesty!
It is not our intention to break the school's academic policy. Projects posted are only used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly fill out the form. Please provide a valid email address and we'll get back to you in less than 24 hours. We will be sending an invoice through PayPal upon confirmation. We are a non profit organization however we need an amount to keep this organization running, and to be able to complete our research and development.