Docsity

Java App Development: Object Oriented Languages & Systems (ECE/CSC 517, Fall 2000) - Prof., Study Guides, Projects, Research of Computer Science

Toggle sidebar
bg1
Program # 3
ECE/CSC 517 Fall 2000
(Object Oriented Languages and Systems)
Suggested readings:
Please brush up your basic Java fundamentals, Class, class variables & instance variables, uses of
String class, File I/O, AWT and basic properties of the components, layout styles, use of dynamic
arrays, concept of Package etc. before starting the implementation.
Write a small application, which can do the following:
1) Read user inputs in a loop from the keyboard and store it in a file
Attributes:
Movie ID
Movie Name
Date of Release (Month- Jan Feb Mar etc. and year yyyy)
Director
Rating (Good or bad)
Let user decide how many records (set of these attributes) he wants to enter.
2) read the above created file and store the data in the program
3) create a GUI and display all the data on it
The GUI should appear like this:
Movie Name: Background of the textfield should be “Yellow” and text should appear in “Red”.
When you click on any of the textfields, the content should get highlighted.
Date of Release: Month and year. On the GUI its has to be shown in combos. First one is the “Month”
combo and the second one is “Year” combo. “Month” combo should enlist all the months by default.
Program 3 Application
Movie ID
Movie Name
Date of Release
Director
Rating • Good
• Bad
Clear Next
Gold Finger
pf2

Partial preview of the text

Download Java App Development: Object Oriented Languages & Systems (ECE/CSC 517, Fall 2000) - Prof. and more Study Guides, Projects, Research Computer Science in PDF only on Docsity!

Program # 3 ECE/CSC 517 Fall 2000 (Object Oriented Languages and Systems) Suggested readings: Please brush up your basic Java fundamentals, Class, class variables & instance variables, uses of String class, File I/O, AWT and basic properties of the components, layout styles, use of dynamic arrays, concept of Package etc. before starting the implementation.

Write a small application, which can do the following:

  1. Read user inputs in a loop from the keyboard and store it in a file Attributes: Movie ID Movie Name Date of Release (Month- Jan Feb Mar etc. and year yyyy) Director Rating (Good or bad) Let user decide how many records (set of these attributes) he wants to enter.
  2. read the above created file and store the data in the program
  3. create a GUI and display all the data on it

The GUI should appear like this:

Movie Name: Background of the textfield should be “Yellow” and text should appear in “Red”.

When you click on any of the textfields, the content should get highlighted.

Date of Release: Month and year. On the GUI its has to be shown in combos. First one is the “Month” combo and the second one is “Year” combo. “Month” combo should enlist all the months by default.

Program 3 Application

Movie ID

Movie Name

Date of Release

Director

Rating (^) • Good

  • Bad

Clear Next

Gold Finger

Rating: Good and bad are two option buttons, which needs to be selected appropriately.

Clear: It is a push button. It will clear all the data fields on the screen. When nothing to be cleared, disable this button. Enable it again when any of the data fields contain information.

Next: This push button will fetch next record (set of attributes) from the program. Once the last record has been fetched, further click should exit the application gracefully.

Write this application using: Main.java: The main program of this application Input.java: This program captures user inputs and stores in a file. Gui.java: This program creates the required GUI. Data.java: This program reads the data from the file and stores it in the program.

Some programming tips:

  1. Avoid using static variables as much possible throughout the application.
  2. Put proper comments so that it is easy to understand your code. It will be a good idea to specify the purpose of the important variables being used.
  3. Every program must have headers showing the name of the program, author, objective of the program, last modified date etc. e.g., /* ************************************* Program name: XXXX Author: YYYY Objective: To convert hex into string Last modified on: 10/13/ */
  4. Mention the start and the end of a method or a class. e.g., Public String hexToString (int I) {

} // end of method hexToString

  1. See to it that your code is legible.

For any clarifications, contact the TA: Prabhas : [email protected]