Create a simple object based gui application, JAVA Programming

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.


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

1512_design preview.png

Posted Date: 3/13/2013 3:40:59 AM | Location : United States

Related Discussions:- Create a simple object based gui application, Assignment Help, Ask Question on Create a simple object based gui application, Get Answer, Expert's Help, Create a simple object based gui application Discussions

Write discussion on Create a simple object based gui application
Your posts are moderated
Related Questions
Illustrate the parser method The below table summarizes the parser methods available to a java programmer.

how can i create an E-exam application on netbeans

Find representative skyline points in to two dimensional data Project Description: Run skyline algorithm run representative skyline algorithm up to skyline algorithm (Affi

Elaborate the ‘+ ' operator and its constraints along with the help of examples? The + Operator Used on Strings. The + operator could also be used to add string variables or te

Explain Labeled Loops in details ? Generally inside nested loops break and continue exit the innermost enclosing loop. For instance consider the subsequent loops. for (int i=1

I want Hall Rental Website Project Description: I want to prepare website for my party venue where i will post the photos and detail of place along with availability calendar

What is the use of UnicastRemoteObject in RMI? Ans) The UnicastRemoteObject class gives support for point-to-point active object references using TCP streams. Objects that need

Describe what is bytecode? It is an instruction set. It extends with class. 'javac' compiler translates the .java file into .class. JVM interprets bytecode.

Explain try and catch exception in java? Why use exceptions instead of return values? 1. Forces error checking 2. Cleans up your code through separating the normal case from

hi i want to get my assingment done