Create a simple object based gui application, JAVA Programming

Assignment Help:

Objective: create a simple object, put that object in a simple collection class, use that object and collection in a simple GUI application.

Specification:  Consider a Library that contains Books. The Book class has attributes for the author, title and number of copies and methods for getting/setting the attributes, borrow a book and return a book.

The Library class stores a collection of Book objectsin an ArrayList.

The program should have the following functionalities:

-   add/delete a book from the Collection

-   borrow/return  aselected book. When borrowing a Book object the number of copies attribute should decrease by 1 while when returning the Book object the number of copies attribute should increase by 1. You should check if the number of copies gets 0.

The class diagram for the classes described above is depicted in Figure.

Implement the classes defined above and provide a simple GUI to handle them. The GUI may look like Figure

Do not consider at this time Exceptions.

Deliverables:

Submit in the Assignments folder under the Project1 link the source files of your project (.java files).

1512_design preview.png


Related Discussions:- Create a simple object based gui application

Need to develop a small android app, Need to develop a Small Android App us...

Need to develop a Small Android App using Text to speech and Speech to Text feature. Project Description: When the Android App Opens, It will connect to Windows Azure cloud,

Confidentiality and privacy - security, The confidentiality and privacy may...

The confidentiality and privacy may be accomplished through encryption. Encryption may be: Private-key or symmetric: This is based on a single key. This needs the sender and the

Java application for create-read-update in table, You are required to imple...

You are required to implement a Java application that allows a user to create, read, update and delete data in a table in a MySQL database. Your program must use a Java class that

Java collection framework., #question.Write a program that computes the edi...

#question.Write a program that computes the edit distance (also called the Levenshtein distance, for its creator Vladimir Levenshtein) between two words. The edit distance between

Describe the superclass in inheritance, Describe the Superclass in Inherita...

Describe the Superclass in Inheritance ? In this example you start through defining a more common MotorVehicle class. public class MotorVehicle { private String licensePlat

Java Thread, What is use of join in Java Threading

What is use of join in Java Threading

Texas holdem poker java game source code, Texas Hold'em Poker Java Game Sou...

Texas Hold'em Poker Java Game Source Code Project Description: I am seeking Java source code for a Texas Hold'em Poker game. The game could have client and server side mod

Enumerate the java program development and execution steps, Java Program De...

Java Program Development and Execution Steps Java program normally go through five phases. These are 1. Edit, 2. Compile, 3. Load, 4. Verify and 5. Execute Co

Difference between object state and behavior, What is difference between ob...

What is difference between object state and behavior? Ans) If you change the state of an object, you ask it to perform a behavior. An object kept its states in a field e.g. vari

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd