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.

Deliverables:

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
What does it mean that a method or class is abstract? An abstract class cannot be instantiated. Abstract methods may only be included in abstract classes. However, an abstract

what are all possible ways in java for user input and output

how to write a program to assign value of variable age and print if person is major.

write a Java program that accept two integers and determine weather they are Coprime or not

Class variables are named as static variables. There is only single occurrence of a class variable per JVM per class loader. When a class is operated the class variables are in

For an assignment I need to write an array program to go along with an instance variable. I keep getting the no main class error when I run my program.

Write a Java program in a NetBeans project that reads a text file containing the names and addresses of several people and displays them all at once or one at a time upon selecting

Spring configuration file is an XML file. This file having the classes information and defines how these classes are configured and introduced to each other.

Explain init(), start(), stop(), and destroy() method? The init() method is known as exactly once in an applet's life, while the applet is first loaded. It's generally used to

Model-View-Controller (MVC) is a design pattern put together to help control change. MVC decouples interface from business logic and data. ? Model: The model having the core of