Task 1 create a new project in eclipsecreate a package

Assignment Help JAVA Programming
Reference no: EM13347407

Task 1

Create a new project in Eclipse.

Create a package called ‘people' within this project. Download the start up classes and put them into this package. Create a second package called ‘task01'. Within this package provide classes which perform the following tasks.

TestUniApplication.

• Create a class, called TestUniApplication, that causes a JFrame window to appear when the application first starts. The window, that appears when the program is executed, should be appropriately sized, titled and located on the screen. The class could have a private instance variable of type Vector (not ArrayList) called students.

• Provide a menu, called Students, with the subsequent menu items
o Add Student
o List Students
o Exit

• Provide the subsequent functionality when each of the menu items is selected

o Add Student - a modal dialog box, called AddStudent, should appear. The details for this dialog box appear below.
o List Students - a modal dialog box, called ListStudents, should appear. The details for this dialog box appear below.
o Exit - the application will close.

• Provide a pushbutton, called Exit, which provides the same functionality as the menu item with the same name.

Task 2

Create a third package called ‘task02'. Copy the TestUniApplication, AddStudentDialog and ListStudentDialog across to this new package. Make the subsequent 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 subsequent 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.

Reference no: EM13347407

Questions Cloud

Understand interpret and be critical of the concepts of : understand interpret and be critical of the concepts of statistical signicance and p-values. statistical signicance is
1research a recent article on the international monetary : 1.research a recent article on the international monetary fund imf perform an online search for an article.write a
1identify and explain the several steps management must : 1.identify and explain the several steps management must take to establish a successful export strategy.2.review the
1 review the case study dell mercosur getting real in : 1. review the case study dell mercosur getting real in brazil. address the subsequent components in a well-written
Task 1 create a new project in eclipsecreate a package : task 1 create a new project in eclipse.create a package called lsquopeople within this project. download the start up
Overviewwrite a program to calculate the component voltages : overviewwrite a program to calculate the component voltages for the following series resonant rlc circuit.the input
Write a report on one of the two following topics1 discuss : write a report on one of the two following topics1 discuss the different agencies institutes centers and other national
1 the tiger company has an opportunity to make an : 1 the tiger company has an opportunity to make an investment with the following estimated after tax cash flows-year
Question 1 - the table sets out the demand and supply : question 1 - the table sets out the demand and supply schedules for chewing gum.pricecents per packquantity

Reviews

Write a Review

JAVA Programming Questions & Answers

  Allows the user to enter a temperature and whether

Write a program that allows the user to enter a temperature and whether the temperature is stated in Celsius or Fahrenheit...or whethe

  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.

  Java applet to find how much federal tax we need to pay

Write a java applet to determine how much federal tax we need to pay assuming the tax rate is 12%.  Ask the taxable income.

  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.

  Given an array with 100,000 entries to sort

Sorting  given an array with 100,000 entries to sort. Under what circumstances would you use each of the following: insertion sort,mergesort'quicksort

  Write an application named us insurance

Write an application named UseInsurance that uses an abstract Insurance class and Health and Life subclasses to display different types of insurance policies and the cost per month.

  Write a program that converts number from binary to decimal

write a program that Converts a Number from Binary to Decimal  by using reading keyboard input.

  Button to increase or decrease the number of the balls

Simulates a bouncing ball. Extend to allow mulitple balls. You can use the +I or -I button to increase or decrease the number of the balls and use teh Suspend and Resume buttoms to freeze the balls or resume bouncing. For each ball, assign a random c..

  Create a computer class

Create a computer class and assume computers have the following fields: String manufacture, double price, int year

  Represent one book in java

Represent one book in java

  Determine product a inferior or normal good

Research illustrates that prices of related goods are given by Py = $5,900 and ; Pz = $90, while average income of individuals consuming this product is M = $55,000. Is X inferior or normal good?

  A java program where the user designates

a java program where the user designates how many games they would like to play (for example user inputs 10 games) then they play the game, if lets say there is a tie after 10 games the game continues until either the user of the computer wins by 2

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