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

  What was in mind of the coder in each part of the code

Need a video that goes through all this java code - as if it was a tutorial showing it line by line - and explain in detail the structure of it all as if you code it yourself.

  Powerful pain reliever are consumers with headaches

Your target market for the most powerful pain reliever are consumers with HEADACHES. Start with goals and objectives. Do a SWOT. What information is most important for your market? Do some market research.

  What is the full path the to location of the web application

suppose that you are creating a java web application named "cset-test" consisting of a JSP file named "main.jsp" , and a java Servlet in a file named "InfoServlet.java". The user's home directory is /home/jdoe.

  Construct a bulls and cows program for my intro java class

construct a Bulls and Cows program for my intro Java class. This program needs to perform the basic functions of the game (determining how many cows there are and how many bulls there are and tell the player when they win), but it also needs to offer..

  Write ijvm program to multiply two hexadecimal numbers

Write the IJVM program that multiplies two (hexadecimal) numbers. The user inputs the hex numbers and the result is printed out. The program then accepts another pair of numbers.

  Java servlet uses doget to return markup document

Write down Java servlet which uses doGet to return markup document which provides your name, e-mail address, and mailing address along with a brief autobiography.

  Redesign the grading program as an object-oriented design

redesign the grading program as an object-oriented design. We will start with a simple Student class. The student will have a name, an id (as a String) and a set of grades (as doubles)

  Java program that prompts the user to input an integer

Write a Java program that prompts the user to input an integer and then outputs both the individual digits of the number and the sum of the digits.

  Qr codes are a popular way

QR codes are a popular way to encode data for easy reading by computerized cameras. True QR codes contain error correction, format specifiers, version information, and a size variable layout that makes them harder to decode and process

  Write program in java for total amount of customer-s order

Write down program in Java which would ask for clerk to enter total amount of customer's order. Program will then compute seven percent (7%) sales tax.

  Project socket programming - udp objectives - learn socket

project socket programming - udp objectives - learn socket programming in java udp-nbsp cement your understanding of

  Compute the fifties and the remaining amount

Prompt the user for a string input value for the amount in dollars and store it in a variable named input and convert the string to an integer and store it in the variable named amount.

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