L10cs2110fa09-6up - 9/24/2009 Announcements 2 A3 is up, due...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
9/24/2009 1 INTRODUCTION TO GRAPHICAL USER INTERFACES (GUI S ) Lecture 10 CS2110 – Fal 2009 Announcements 2 ± A3 is up, due Friday, Oct 9 ± Prelim 1 scheduled for Thursday October 15 ± We do NOT have any scheduled makeup exam ± If you have a conflict, let us know now; you can take the exam a little earlier on the same day Interactive Programs 3 ± “Classic” view of computer programs: transform inputs to outputs, stop input output ± Event-driven programs: interactive, long-running ± Servers interact with clients ± Applications interact with user(s) user user program input events output events GUI Motivation ± Interacting with a program ± Program-Driven = Proactive ² Statements execute in sequential, predetermined order ² Typically use keyboard or file I/O, but program determines when that happens ± Design. ..Which to pick? ± Program called by another program? ± Program used at command line? 4 ² Usually single-threaded ± Event-Driven = Reactive ² Program waits for user input to activate certain statements ² Typically uses a GUI (Graphical User Interface) ² Often multi-threaded ± Program interacts often with user? ± Program used in window environment? ± How does Java do GUIs? Java Support for Building GUIs ± Java Foundation Classes ± Classes for building GUIs ± Major components ² awt and swing ± Our main focus: Swing ± Building blocks of GUIs ± Windows & components 5 ² Pluggable look-and-feel support ² Accessibility API ² Java 2D API ² Drag-and-drop Support ² Internationalization ± User interactions ± Built upon the AWT (Abstract Window Toolkit) ± Java event model Swing versus SWT ± Swing builds on AWT ± Strives for total portability ± Secretly seems to have ± SWT is “new” ± Goal is best performance ± Great fit with 6 a grudge against Windows ± Basic architecture is pretty standard Windows system ± Basic architecture is pretty standard 9 Lonnie opted for SWT in A3 but could just as easily have used Swing. He feels that use of SWT simplified his code.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
9/24/2009 2 Java Foundation Classes 7 ± Pluggable Look-and-Feel Support ± Controls look-and-feel for particular windowing environment ± E.g., Java, Windows, Mac ± Accessibility API ± Supports assistive technologies such as screen readers and Braille ± Java 2D ± Drawing ± Includes rectangles, lines, circles, images, . .. ± Drag-and-drop ± Support for drag and drop between Java application and a native application ± Internationalization ± Support for other languages GUI Statics and GUI Dynamics ± Components ± buttons, labels, lists, sliders, menus, . .. ± Events
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

L10cs2110fa09-6up - 9/24/2009 Announcements 2 A3 is up, due...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online