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

Develop a supply chain management, Develop a Supply Chain Management Pro...

Develop a Supply Chain Management Project Description: Supply Chain Management from HK and China Skills required is Java

Test the applet sample , Obtain ONE of the sample applets from Sun Microsys...

Obtain ONE of the sample applets from Sun Microsystems' Applets page, or any other source for free Java applets you may wish to use. Test the applet, and link it to Part 2 of your

Interfaces and generics, In this assignment, you are provided with an inter...

In this assignment, you are provided with an interface that contains a generic type. You are asked to create two classes that implement this interface. A. The Sequenced Interfac

What is jdbc abstraction and dao module, Using this module we can keep up t...

Using this module we can keep up the database code clean and easy, and prevent problems that result from a failure to close database resources. A new layer of meaningful exceptions

Derfine j2ee in detail?, A J2EE component is a self-contained functional so...

A J2EE component is a self-contained functional software unit that is assembled into a J2EE application with its related files and classes and interacts with other components. The

What is jar archives, What is JAR archives? JAR archives are ZIP archiv...

What is JAR archives? JAR archives are ZIP archives along with a different extension. They contain a hierarchy of files and directories. In spirit a JAR file can take the place

Benefits of aop (aspect oriented programming), Benefits of AOP (Aspect Orie...

Benefits of AOP (Aspect Oriented programming) OOP can give the system level code like transaction management, logging, security etc to scatter throughout the business logic. A

What is struts framework, Struts framework is an open-source framework for ...

Struts framework is an open-source framework for producing the web applications in Java EE, based on MVC-2 architecture. It uses and extends the Java Servlet API. Struts are robust

Different points where weaving can be applied, What are the different point...

What are the different points where weaving can be applied? Ans) There are three points ? Compile Time ? Classload Time ? Runtime

Give an example of class or static members, Give an example of Class or sta...

Give an example of Class or static Members? Below is a Car class along with such a speedLimit field and getSpeedLimit() method. public class Car { private String licensePla

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