cs 2334 proje ject 4
play

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


  1. CS 2334: Proje ject 4 Graphical User In Interfaces Andrew H. Fagg: CS2334: Project 2 1

  2. Project 3 3 Lessons Andrew H. Fagg: CS2334: Project 2 2

  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

  4. Project 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 Andrew H. Fagg: CS2334: Project 2 4

  5. High-Level Task Andrew H. Fagg: CS2334: Project 2 5

  6. • Demonstration …. Andrew H. Fagg: CS2334: Project 2 6

  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

  8. Small Changes to Existing Classes Andrew H. Fagg: CS2334: Project 2 8

  9. Possible GUI I Im Implementation Andrew H. Fagg: CS2334: Project 2 9

  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

  11. Deadlines • Project must be submitted by Wednesday, Nov 18 th @1:29pm • Code review must be completed by Monday, Dec 7 th • But don’t wait this long (better to have feedback as you are going into project 5) Andrew H. Fagg: CS2334: Project 2 11

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend