CS 2334: Proje ject 4 Graphical User In Interfaces Andrew H. - - PowerPoint PPT Presentation

cs 2334 proje ject 4
SMART_READER_LITE
LIVE PREVIEW

CS 2334: Proje ject 4 Graphical User In Interfaces Andrew H. - - PowerPoint PPT Presentation

CS 2334: Proje ject 4 Graphical User In Interfaces Andrew H. Fagg: CS2334: Project 2 1 Project 3 3 Lessons Andrew H. Fagg: CS2334: Project 2 2 Project 3 3 Lessons Class hierarchies Code reuse through abstract classes Handling


slide-1
SLIDE 1

CS 2334: Proje ject 4 Graphical User In Interfaces

Andrew H. Fagg: CS2334: Project 2 1

slide-2
SLIDE 2

Project 3 3 Lessons

Andrew H. Fagg: CS2334: Project 2 2

slide-3
SLIDE 3

Project 3 3 Lessons

  • Class hierarchies
  • Code reuse through abstract classes
  • Handling variables that haven’t been defined ahead of time
  • Maps for quick lookup of sub-objects

Andrew H. Fagg: CS2334: Project 2 3

slide-4
SLIDE 4

Project 4

Andrew H. Fagg: CS2334: Project 2 4

Enable the user to explore the data:

  • Select single station
  • Select single variable
  • Select one or more years
  • Display maximum, average and minimum for the selected data
slide-5
SLIDE 5

High-Level Task

Andrew H. Fagg: CS2334: Project 2 5

slide-6
SLIDE 6
  • Demonstration ….

Andrew H. Fagg: CS2334: Project 2 6

slide-7
SLIDE 7

Objectives

Create a Graphical User Interface

  • Drop-down menus (JMenuBar)
  • Allow user to select from a list of possible items (JList)
  • Components to display textual data (JLabel, JTextField, etc.)
  • Listeners to respond to user selections (ActionListeners and

SelectionListeners)

Andrew H. Fagg: CS2334: Project 2 7

slide-8
SLIDE 8

Andrew H. Fagg: CS2334: Project 2 8

Small Changes to Existing Classes

slide-9
SLIDE 9

Andrew H. Fagg: CS2334: Project 2 9

Possible GUI I Im Implementation

slide-10
SLIDE 10

Notes

  • Many hints in the specification
  • You have to read the Java API in many cases…
  • Implement and test incrementally

Andrew H. Fagg: CS2334: Project 2 10

slide-11
SLIDE 11

Deadlines

  • Project must be submitted by Wednesday, Nov 18th @1:29pm
  • Code review must be completed by Monday, Dec 7th
  • But don’t wait this long (better to have feedback as you are going

into project 5)

Andrew H. Fagg: CS2334: Project 2 11