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

  Write servlet code for accepting two numbers from user

Write the servlet code for accepting two numbers from user show addition and multiplication of numbers. If error occurs, then call JSP error page to display suitable error message.

  Create a method that would search through an arraylist

What is the best way of the following ways (For each, Iterator, While with index) that you would use to create a method that would search through an ArrayList of files for a certain file and then delete it, and why?

  Program to translates a number into the closest letter grade

Write a program that translates a number into the closest letter grade. For example, the number 2.8 (which might have been the average of several grades) would be converted to B-. Break ties in favor of the better grade

  Java program which demonstrates cellular automata

Using the internet, locate a Java program (or Java applet) which demonstrates "Cellular Automata", in particular "the Game of Life".

  Write a while loop that lets the user enter a number

1) Write a while loop that lets the user enter a number. The number should then be multiplied by 10, and stored in a variable called product. The loop should then iterate as long as product contains a value less than 100.

  Classes using set and get methods

Create a java program that contains two classes using set and get methods. I need the program to return the area and perimeter of a rectangle. I wrote a program and he returned to me saying I used the wrong constructors and didn't create a the sec..

  Display random numbers to simulate rolling a die

1. Display random numbers to simulate rolling a die2. Create a java program that simulate a casino game. (rollin a die)

  Design and implement an applet called circles

Design and implement an applet called Circles that draws 50 circles of random diameter in random locations. If the diameter of a circle is less than a certain value, the circle is ?lled with the color yellow.

  Write a program that reads a file name from the keyboard

Write a program that reads a file name from the keyboard. The file contains integers, each on a separate line. The first line of the input file will contain the number of integers in the file. You then create a corresponding array and fill the array ..

  Write an array where the user can input 7 temperatures

Write an array where the user can input 7 temperatures; include a 'for' loop. Make sure the temperatures are larger than -100 and smaller than or equal to 120, if not, make sure the user enters a valid number. Make sure the temperature is between the..

  Create file lab7.java with a main method.

Create file Lab7.java with a main method. Inside your main method, write a segment of code which instantiates an object of the Student class (This class has been created for you in the  Student.java  file that is provided as part of this lab).

  Write a java program that prints the numbers from 1 to 125

Write a Java Program that prints the numbers from 1 to 125. But for multiles of three print "Batman" instead of the number and for the multiples of five print "Superman". For instances which are multiples of both three and five "JusticeLeague".

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