Create a package called people

Assignment Help JAVA Programming
Reference no: EM13309684

Task 1

Create a new project in Eclipse called ‘Assignment 2'.
Create a package called ‘people' within this project. Download the start up classes and put them into this package. These classes are similar to the ones you wrote for assignment 1 but they have been modified somewhat, so make sure you use the ones provided.
Create a second package called ‘task01'. Within this package provide classes which perform the following tasks.

Task 2
Create a third package called ‘task02'. Copy the TestUniApplication, AddStudentDialog and ListStudentDialog across to this new package. Make the following modifications to TestUniApplication


• Provide a second menu called File with the following menu items.
o A menu item called save. When this item is selected, the whole Vector is stored to a file using serialisation. Use a FileChooser object for this. The starting directory for the FileChooser object should be c:\\input.
o A menu item called open. When this item is selected, a FileChooser object appears which enables the user to open a file that was previously save (using the ‘save' button). The Vector object should be read from the file, and its contents added to whatever is currently in the main Vector collection.
o A menu item called empty that will remove all Students currently in the Vector. A message box should appear to confirm with the user if this is the action they want taken.
Make the following modifications to ListStudentDialog
• Add a new button (called remove) to remove the selected Student. When this button is clicked a message box should appear asking whether the user is sure that they want to delete the student. If the user selects ‘yes' the Student should be removed from the underlying Vector. The window should then close and control return to the main window.
• Note that if you click the remove button with no item selected in the list, the program will crash with an ArrayOutOfBoundsException. While there are several ways of dealing with this, the program should use a try/catch block that provides a message dialog (in the handler) telling the user that an item must be selected.


Attachment:- 353031_1_Assignment-2.zip

Reference no: EM13309684

Questions Cloud

Calculate volume and approximate hydraulic retention time : Primary treatment removes ~25 percent of the BOD. Calculate the volume (m3) and approximate hydraulic retention time (h) of the aeration basin required to run the plant as a "high rate" facility (F/M = 2 kg BOD/kg MLSS-day).
Explain methyl salicytate is heated in water : methyl salicytate is heated in water, salicylic acid and methyl alcohol form. HOC6H4COOCH3 + H2O --> HOC6H4COOH + CH3OH 4.0mL Methyl Salicitate
What is the potential difference across the battery : A battery in a circuit has an emf of 8.8 V. The only other component in the circuit is a resistor. 4.4 A of current flows in the circuit. What is the potential difference across the battery
Explain a solution of phenol would the phenol : If you added the oxidizing agent, chromate, to a solution of phenol, would the phenol be oxidized and would a green Cr3+ solution be formed
Create a package called people : Create a second package called ‘task01'. Within this package provide classes which perform the following tasks.
Find the total compression of the spring : The springs of a 1500kg car compress 5.00mm when its 68 kg driver gets into the driver seat. A 100 kg passenger then gets into the car. Find the total compression of the spring
Define what is the actual concentration your unknown protein : You diluted the 1:2 dilution 1:3 and finally got a reading that fit onto your standard curve. Your absorbance was 0.450. The best fit line equation : y=0.3413x. What is the actual concentration your unknown protein
Find the heat lost by the aluminum cup : A cube of ice is taken from the freezer at -8.50C and placed in a 95-g aluminum calorimeter filled with 310 g of water at room temperature of 200C
Explain the stock solution to make bovine serum albunim : Bovine Serum Albunim (BSA) You need to make 100 ml of 2mg/ml BSA. Describe how you would dilute the stock solution to make this

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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