Review Text Material Covered –Culwin: Chapter 8 threads –Johnson: Chapters 9, 10, 1 through p.44 –Swing: Chapter 1-15 Lessons Learned –Concepts of concurrency/synchronization.

Slides:



Advertisements
Similar presentations
Introduction to Java 2 Programming
Advertisements

Feb 14, principles 1&2 Focus on users and their tasks –Identify the users –Clarify the purpose (goal software helps users achieve) –What advantage does.
2D Graphics Drawing Things. Graphics In your GUI, you might want to draw graphics E.g. draw lines, circles, shapes, draw strings etc The Graphics class.
COP2800 – Computer Programming Using JAVA University of Florida Department of CISE Spring 2013 Lecture 32 – Java Graphical User Interfaces (GUIs) Webpage:
Things to mention public static void main(String [] args) –The starting point for a free-standing Java application (i.e. one not run from the DrJava interactions.
Unit 091 Introduction to GUI Programming Introduction to User Interfaces Introduction to GUI Programming GUI Design Issues GUI Programming Issues Java.
Chapter 6 Graphical User Interface (GUI) and Object-Oriented Design (OOD)
1 Chapter 7 Graphics and Event Handling. 2 Overview The java.awt and javax.swing packages and their subpackages support graphics and event handling. Many.
Understanding SWING Architecture CS 4170 UI Design Hrvoje Benko Oct. 9, 2001.
Lecture 15 Graphical User Interfaces (GUI’s). Objectives Provide a general set of concepts for GUI’s Layout manager GUI components GUI Design Guidelines.
Creating a GUI with Swing. Introduction Very useful link: Swing – is a part of JFC (Java Foundation.
1 GUI Elements in Java Nelson Padua-Perez Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
1 CMSC 132: Object-Oriented Programming II Nelson Padua-Perez William Pugh Department of Computer Science University of Maryland, College Park.
From Scenarios to Paper Prototypes Chapter 6 of About Face Defining requirements Defining the interaction framework.
GUI Programming in Java Tim McKenna GUI Programming Concepts l conventional programming: sequence of operations is determined by the program.
Introduction to Java Swing “We are the sultans of swing” – Mark Knopfler.
A.k.a. GUI’s.  If you want to discuss your Lab 2 grade come see me this week. ◦ Office: 436 ERB. One hour prior to class ◦ Open to Appointments MWF 
GUI Programming in Java
Welcome to CIS 083 ! Events CIS 068.
Java Swing, Events and MVC Optional Readings: Eckel’s Thinking in Java: Chap 14 (
MIT AITI 2003 Lecture 17. Swing - Part II. The Java Event Model Up until now, we have focused on GUI's to present information (with one exception) Up.
3461A Readings from the Swing Tutorial. 3461A Overview  The follow is the Table of Contents from the trail “Creating a GUI with JFC/Swing” in the “The.
Java Programming: Advanced Topics 1 Common Elements of Graphical User Interfaces Chapter 6.
Graphical User Interface Components Chapter What You Will Learn Text Areas Text Areas Sliders Sliders Menus Menus –With frames –Pop up menus Look.
Chapter 9: Visual Programming Basics Object-Oriented Program Development Using Java: A Class-Centered Approach.
Session 27 Swing vs. AWT. AWT (Abstract Window ToolKit) It is a portable GUI library for stand-alone applications and/or applets. The Abstract Window.
School of Computer Science & Information Technology G6DICP - Lecture 17 GUI (Graphical User Interface) Programming.
GUIs in Java Swing, Events CS2110, SW Development Methods Readings: MSD, Chapter 12 Lab Exercise.
1 CSC111H Graphical User Interfaces (GUIs) Introduction GUIs in Java Understanding Events A Simple Application The Containment Hierarchy Layout Managers.
Graphic User Interface. Graphic User Interface (GUI) Most of us interact with computers using GUIs. GUIs are visual representations of the actions you.
SWING IF YOU GET LOST - IMPORTANT LINKS  Swing articles:
Graphics and Event-Driven Programming in Java John C. Ramirez Department of Computer Science University of Pittsburgh.
MSc Workshop - © S. Kamin, U. ReddyLect 3 - GUI -1 Lecture 3 - Graphical User Interfaces r GUI toolkits in Java API r JFrame r GUI components.
Concurrent Programming and Threads Threads Blocking a User Interface.
SWING 101. IF YOU GET LOST - IMPORTANT LINKS  Swing articles:
1 Java Swing - Lecture 2 Components and Containment Boriana Koleva
Object Oriented Programming Engr. M. Fahad Khan Lecturer, Software Engineering Department University of Engineering & Technology, Taxila.
Chapter 12Java: an Introduction to Computer Science & Programming - Walter Savitch 1 Announcements/Reminders l Next week: »No Lectures »No Labs »Recitation.
CS Fall 2012, Lab 09 Haohan Zhu. Boston University Slideshow Title Goes Here CS Fall 2012, Lab /20/2015 GUI - Graphical User Interface.
CS324e - Elements of Graphics and Visualization Java GUIs - Event Handling.
The Abstract Window Toolkit (AWT) supports Graphical User Interface (GUI) programming. AWT features include: a rich set of user interface components; a.
CS1054: Lecture 21 - Graphical User Interface. Graphical User Interfaces vs. Text User Interface.
Swing / Session1 / 1 of 30 Module Introduction Distributed Computing in Java.
Week 6: Basic GUI Programming Concepts in Java Example: JFrameDemo.java container : a screen window/applet window/panel that groups and arranges components.
Intro to Applets. Applet Applets run within the Web browser environment Applets bring dynamic interaction and live animation to an otherwise static HTML.
GUIs Graphical User Interfaces. Everything coming together Known: – Inheritance – Interfaces – Abstract classes – Polymorphism – Exceptions New: – Events.
Java Swing One of the most important features of Java is its ability to draw graphics.
Java Programming, Second Edition Chapter Thirteen Understanding Swing Components.
GUI I IS Outline  Quiz  Quiz solution  GUI components  Layout.
JAVA: An Introduction to Problem Solving & Programming, 6 th Ed. By Walter Savitch ISBN © 2012 Pearson Education, Inc., Upper Saddle River,
Java Swing, Events Readings: Just Java 2: Chap 19 & 21, or Eckel’s Thinking in Java: Chap 14 Slide credits to CMPUT 301, Department of Computing Science.
Chapter 10 - Writing Graphical User Interfaces1 Chapter 10 Writing Graphical User Interfaces.
Sep 181 Example Program DemoTranslateEnglishGUI.java.
Designing a User Interface with Swing Assignment Swing: Update code of an earlier program.
Introduction to Swing Mr. Crone. What is Swing? a collection of pre-made Java classes used to create a modern graphical user interface.
Introduction to Swing Mr. Crone. What is Swing? a collection of pre-made Java classes used to create a modern graphical user interface.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 7 Event-Driven Programming and Basic GUI Objects.
Java Swing What is swing? Swing is a ”Lightweight” GUI ToolKit for Java Different from AWT / SWT Toolkits for GUIs Few lines of code to produce GUI elements.
Graphical User Interfaces
University of Central Florida COP 3330 Object Oriented Programming
Designing a User Interface with Swing
Lecture 28 Concurrent, Responsive GUIs
EE 422C Java FX.
Event Driven Programming and Graphical User Interface
תכנות מכוון עצמים בשפת JAVA
From Big Ideas to Lesson Plans
Week 8 Swing NetBeans GUI Builder
Introduction to Graphical Interfaces in Java: AWT and Swing
Graphical User Interface
Presentation transcript:

Review Text Material Covered –Culwin: Chapter 8 threads –Johnson: Chapters 9, 10, 1 through p.44 –Swing: Chapter 1-15 Lessons Learned –Concepts of concurrency/synchronization –What an interface designer does –What skills an interface designer has –What knowledge an interface designer draws on –Difference between design and implementation –Architecture of Swing (and any Windows) applications –Swing container classes and their libraries

Questions that Could be Asked How do concurrent objects interact –What goes wrong with concurrent code and why? –What does thread-safe mean? –How does Java synchronize threads? What lessons can be drawn from –Eudora Pro installation case –Kodak Picture Disk case –A Fork in the Tale Experience –Satellite box interface case What is the content of these principles: –Focus on users, not technology –Consider function first, presentation later –Conform to the users view of the task –Dont complicate the users task –Promote learning

What should be understood about Swing? What is the role of –JFrame class (what does an instance look like, what is the instance used for, what are the options for creating and accessing an instance) –JDialog class (how is it different from a JFrame instance, what does an instance look like, when is it used, how is it created and accessed) –What is a Japplet (how is it similar and different from the other two)

Swing Concepts What is an InternalJFrame and how is it used? What is a JPanel and how is it used? What is a ScrollPane and how is it used? –What are the components of a scrollpane –How does the viewpoint interact with scrollbars? What is a SplitPane and how is it used? What is a TabbedPane and how is it used? What is a ToolBar and how is it used? What is a Layered Pane and how is it used? What is a RootPane and how is its LayeredPane, ContentPane and GlassPane used?

Swing Concepts cont What is Layout management and how is it invoked? How are events handled? –What kinds of events occur in a GUI? –How is the event transmitted to a Listener What goes on when paint() and repaint() are invoked, and what caused them to be called? What are the new features that Swing adds to the awt of Java1.1? –What is a LookandFeel? –What are icons?

Quiz Questions We have studied several examples (the author talks about snippets, the book has the entire code in the back). Given a demo class definition, you should be able to annotate it similar to the way I annotated the GlassPaneDemo (if I place an at a statement you could explain what that statement accomplishes).