Create a project in eclipse

Assignment Help JAVA Programming
Reference no: EM131338

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: EM131338

Questions Cloud

Concept of statistical signi cance : Concept of statistical signi cance
International monetary fund : International Monetary Fund
Explain the several steps management : Identify and explain the several steps management must take to establish a successful export strategy.
Geocentric approaches to staffing : Explain the polycentric, ethnocentric, and geocentric approaches to staffing.
Create a project in eclipse : Create a new project
Calculate the component voltages : Input voltage will be a step voltage that is 0 volt before time t = 0 and V in
Write a report on environmental companies : Write a report on environmental companies
Calculate payback period and internal rate of return (irr) : Company has an opportunity to make an investment with the estimated after tax cash flows
Demand and supply schedules : Demand and supply schedules

Reviews

Write a Review

JAVA Programming Questions & Answers

  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.

  World data app

Prepare WorldDataApp project. It implements the NameIndex portion, including creating it in SetupProgram, and searching, viewing and updating it in UserApp program.

  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.

  Determine if strings are equal

Complete the recursive method match in the code below which will determine whether or not two strings match.

  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!.

  Record managing system application

Build a student record managing system application

  Compilation and Execution - JAVA problem

Style marks are based on how your submitted code looks. Remember that good code is easily readable (and understandable) by someone who did not write it. For assignments, you should also include your name, student number, what course this is, what ass..

  Socket programming in java: tcp

In this project we will develop a Web server in two steps. In the end, you will have built a multi-threaded Web server that is capable of processing multiple simultaneous service requests in parallel.

  Technical community blog

Write a blog article for a coding/technical community blog

  Design a course registration system

Create an application which represents a simplified course registration system using ArrayLists and HashMaps.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Java problem - g queue

A queue is an ordered collection of items in which the removal of items is restricted to the FIFO ( rst in rst out) principle.

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