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 an application that extends jframe

Write an application that extends JFrame and that displays a phrase in every font size from 6 through 20.

  What is the average response time for this system?

A web server receives a request every 50ms and processes web requests every 8 ms. Using queuing theory, 1. What is the average response time for this system?

  Write java program to accept two words as input

Write a Java program that accepts two words as input and determines if one of them is resulting from changing the order of the others' letters.

  What makes a program easy to modify

Describe the order of magnitude of the code section using Big(O) notation and Explain the relationship between dynamic storage allocation and recursion.

  Write java program using array list object

Write a java program (using eclipse) using ArrayList object to allow the professor to enter student's name, his or her's four test scores.

  Write down ijvm code to remove top two words from stack

Write down IJVM code which will remove these top two words, multiply and put their product back on stack. You are allowed to use existing IJVM instructions only.

  Write applet which reads five numbers-draw equivalent stars

Write the applet which reads five numbers (each between 1 and 30). For each number read, your program must design line containing that number of adjacent asterisks.

  Multiplexors whose control bit allows you

Design a 4-bit up/down counter that has 2 to 1 multiplexors whose control bit allows you to select between one of two counting modes up or down

  Define application using java in the eclipse environment

Within this project create a package called task01. Within this package you will be required to author (write, develop) some classes. These classes are described below

  Palindrome by doing character replacement

A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement.

  Write a program arrayprocessing.java

Write a program ArrayProcessing.java that reads a file name from the keyboard. The file contains integers, each on a separate line. You then create a corresponding array with integers from the lines.

  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)

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