1 / 18

CS-434: Object-Oriented Programming Using Java Week 4

CS-434: Object-Oriented Programming Using Java Week 4. Dr. Jesús Borrego Adjunct Faculty Regis University. Class Outline. Review of Homework 3 and 4 Key Terms Sample Program – in class Midterm Exam Questions?. MVC. Model, View, Controller View – renders the user interface to user

melora
Télécharger la présentation

CS-434: Object-Oriented Programming Using Java Week 4

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CS-434: Object-Oriented Programming Using JavaWeek 4 Dr. Jesús Borrego Adjunct Faculty Regis University

  2. Class Outline Review of Homework 3 and 4 Key Terms Sample Program – in class Midterm Exam Questions?

  3. MVC Model, View, Controller View – renders the user interface to user Controller – handles user events through the user interface Model – responsible for the entire application

  4. Java UI Frameworks Abstract Windowing Toolkit (AWT) – uses native API to render graphics Java 2D – draws 2 dimensional graphics that are independent of OS Swing – rich set of components to create user interfaces; built on top of J2D and AWT

  5. AWT Components • Require: • import java.awt.*; • import jave.awt.event.*; • import javax.swing.*; • Top level containers: • Jframe – main window • Jdialog – dialog window • JApplet – runs in a web page

  6. Containers • General Purpose: • JPanel – container of widgets • JScrollPane – container with scroll bars • JSplitPlane – container with split panes • JTabbedPane – container with tabs • JToolBar – Container with task bars • Special Purpose: • JInternalPane, JLayeredPane, RootPane

  7. Controls (Cont’d) Jbutton, JCheckBox, JComboBox, JList, JMenu, JMenuItem, JRadioButton, JSlider, JSpinner, JTextField, JPasswordField JColorChooser, JEditorPane, JFieldChooser, JTable, JTextArea, Jtree JLabel, JProgressBar, Jseparator, JToolTip

  8. Layout Managers

  9. Review of Homework 1 Create a use case diagram for a library Include actors, use cases, and relations between users and use cases Prefer use of Visio More details in WorldClass (Case Study_Library Application)

  10. Event Listeners Listen to events from user interface User interacts with the graphical component Mouse clicks generate events Event listeners respond to events

  11. Building an User Interface - Steps • Detailed steps in WorldClass, Content area, Week 4: • Building a User Interface using NetBeans Drag and Drop

  12. Homework 5 • Create a User Interface for the library system (one per student): • Log On • Book Interface (check out, add, check in, delete) • Customer Interface (add, view, display items checked out) • Inventory Interface (Search, List)

  13. Activity 1 – File handling

  14. Review of Homework 2 Create a Hello World program using NetBeans Capture screen where it shows the package and results Submit to WorldClass before week 2

  15. Key Terms Constructor - Constructor Inheritance - Herencia Interface – Interfaz Overloading – Sobrecargar Package – Paquete Polymorphism - Polimorfismo

  16. Questions?

More Related