Please use netBeans 
Exercise 4:
A librarian needs to keep track of the books he has in his Library.
1. Create a class Book that has the following attributes: ISBN, Title, Author, Subject, and Price. Choose an
appropriate type for each attribute.
2. Add a static member BookCount to the class Book and initialize it to zero.
3. Add a default constructor for the class Book. Increment the BookCount static member variable and an initialization constructor for the class Book. Increment the BookCount in all constructors.
4. Add the setters and getters to the class Book and a toString() to the class Book.
5. Create the following GUI to manipulate the class Book:
1. Read the available books from the input file with its name specified by the user. (Hint: Read a whole line using Scanner nextLine() method then split it on colons using String split() method).
2. When you read one book information, create a Book object, and use its toString() method to add it to the Text area (Hint: use the append() method of the text area).
3. Add new books using the “Add Book” button. Collect information from the text fields, then create a Book object, and use its toString() method to add it to the text Area. (Hint: use the append() method of the text area).
4. Display the BookCount attribute as the current number of books. Use Book.getBookCount() to retrieve the current number of books.
5. Save the new book list to an output file with its name specified by the user
6. Implement the Clear button to clear all text fields.
7. Make sure to handle the exceptions if any might occur. File Not Found Exception, Number Format Exception,
and all other exceptions.
8. Change the fields colors and status message based on the actions.
We need at least 10 more requests to produce the answer.
0 / 10 have requested this problem solution
The more requests, the faster the answer.
Exercise 1: Create a simple Graphical User Interface (GUI): Create new JFrameForm and use the Palette to drag and drop the Swing Containers and Controllers like the figure shown. Your Form should accept a file name in its text field. When the user presses OK Button, the content of the String array appear in the Text area below. Handle all Exceptions (File Not Found Exception)
Please use python Programming Language: Select one of the following topics: Band Character Account Create a class based on your chosen topic. Make sure to include at least four attributes of varying types, a constructor, getters/setters for each attribute w/input validation, a toString, a static attribute, and a static method. Then, create a function (outside of your class) that connects to a text file which should contain the attributes of several objects. Read the data from the file, use the...
Java: student directory GUI You need to implement three classes: Person Student StudentDirectory StudentMain Start by implementing Person and Student classes. Once you are sure you can serialize and deserialize and ArrayList of Students to and from a file, move on to building the GUI application. Person: The Person class should implement serializable interface. It contains the following: Person's first name (String) Person's last name (String) Person's id number Person's date of birth (Date) public String toString(): This method method...
answer in c# console application.
File l/O Create a Person class (firstName, lastName, phoneNumber, gender (Use radioButtons for gender in the GUI) ) Create a List<Person> Create a GUI that will collect the Person information from the user and have 3 buttons: Add, Display, Read. Add button Add the just created person to List<Person>, and append to a text file Display button > print out all persons currently in the List<Person> in a label in a visually attractive way Read...
AccountSaving.java This program question is to be completed in Java Programming language Can you Create a class called AccountSaving.java that will extend a type of file called AccountPersonal.java. AccountSaving should be in its own file called AccountSaving.java. A saving account cannot withdraw more than its balance. AccountSaving should have the following characteristics. Create A constructor that takes the specified customer name, id, balance, annual interest rate, and date created. Make sure that you call the constructor in the AccountPersonal....
Please try to write the code with Project 1,2 and 3 in
mind. And use java language, thank you very much.
Create an Edit Menu in your GUI
Add a second menu to the GUI called Edit which will have one
menu item called Search. Clicking on search should prompt the user
using a JOptionPane input dialog to enter a car make. The GUI
should then display only cars of that make. You will need to write
a second menu...
Exercise 2:Add a list of numbers in the text area, then calculate their Maximum, Minimum and Average. Use the following GUI to build your application. Handel all exceptions.Exercise 3:Complete the program below in order to make run properly by competing validName methods and add try- catch block in the main method
Please help with a source code for C++ and also need screenshot of output: Step 1: Create a Glasses class using a separate header file and implementation file. Add the following attributes. Color (string data type) Prescription (float data type) Create a default constructor that sets default attributes. Color should be set to unknown because it is not given. Prescription should be set to 0.0 because it is not given. Create a parameterized constructor that sets the attributes to the...
Edit question 1. Write an application with three labeled text fields, one each for the initial amount of a savings account, the annual interest rate, and the number of years. Add a button “Calculate” and a read-only text area to display the balance of the savings account after the end of each year. You can create a text area with: private JTextArea balanceArea; and initialize it with: balanceArea = new JTextArea(20, 20); <-- 20, 20 is the height, width You...
Lab Description : Exercise : a) Create an interface named ReadAndWriteFile, that has readAndReturnFile() and writeFile() methods. b) readAndReturnFile() and writeFile() both throws IOException, FileNotFoundException and Exception. c) Create a class named DealingWithTextFile that implements ReadAndWriteFile. This class read and write txt files. d) Create a class named DealingWithCsvFile that implements ReadAndWriteFile. This class read and write csv files. - Please mention that you have to deal with exceptions, use a dialog message to catch the exceptions. e) DealingWithTextFile class...