Test Postmortem Dennis Burford

Slides:



Advertisements
Similar presentations
Java GUI building with the AWT. AWT (Abstract Window Toolkit) Present in all Java implementations Described in (almost) every Java textbook Adequate for.
Advertisements

Graphical User Interfaces
CS18000: Problem Solving and Object-Oriented Programming.
Graphic User Interfaces Layout Managers Event Handling.
CSC111H Project Planning Dennis Burford
Deitel Ch 11-part 1 Java GUIs 1 Java GUIs (Deitel, Chap 14-part1) Focus: Attaching GUI components + event handling  input dialog => only one value for.
Fall 2007CS 225 Graphical User Interfaces Event Handling Appendix C.
Java Swing Recitation – 11/(20,21)/2008 CS 180 Department of Computer Science, Purdue University.
Java GUI Libraries Swing Programming. Swing Components Swing is a collection of libraries that contains primitive widgets or controls used for designing.
Swing CS-328 Dick Steflik John Margulies. Swing vs AWT AWT is Java’s original set of classes for building GUIs Uses peer components of the OS; heavyweight.
Graphical User Interfaces Allow for interaction with –Buttons –Menus –Text Fields Two Java Libraries to assist in GUI Programming –AWT –Swing.
GUI and Event-Driven Programming Recitation – 3/6/2009 CS 180 Department of Computer Science, Purdue University.
Creating a GUI with Swing. Introduction Very useful link: Swing – is a part of JFC (Java Foundation.
Layout Mangers CSC 171 FALL 2001 LECTURE 14. History: The Transistor William Shockley, John Bardeen, and Walter Brattain invent the transfer resistance.
© The McGraw-Hill Companies, 2006 Chapter 10 Graphics and event- driven programs.
Contructing GUI’s in Java Implemented in the Swing API Imported into your programs by: import javax.swing.*; Most Swing programs also need the AWT packages.
Java Swing Chris North cs3724: HCI. AWT to Swing AWT: Abstract Windowing Toolkit import java.awt.* Swing: new with Java2 import javax.swing.* Extends.
Chapter 8: Graphical User Interfaces Objectives - by the end of this chapter, you should be able to do the following: –write a simple graphical user interface.
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 
Chapter 9: Applets Jim Burns Fall Outline Learn about applets Learn about applets Write an HTML doc to host an applet Write an HTML doc to host.
CIS 068 Welcome to CIS 083 ! Introduction to GUIs: JAVA Swing.
1 CSC111H Graphical User Interfaces (GUIs) Introduction GUIs in Java Understanding Events A Simple Application The Containment Hierarchy Layout Managers.
1 CSC111H Client-Server: An Introduction Dennis Burford
Introduction to GUI in Java 1. Graphical User Interface Java is equipped with many powerful,easy to use GUI component such as input and output dialog.
Object Oriented Programming Ders 11: Interfaces Mustafa Emre İlal
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.
Introduction to Swing Components Chapter 14.  Part of the Java Foundation Classes (JFC)  Provides a rich set of GUI components  Used to create a Java.
Java Programming: Advanced Topics 1 Common Elements of Graphical User Interfaces Chapter 6.
Java Event Handling CSIS 3701: Advanced Object Oriented Programming.
GUIs in Java Swing, Events CS2110, SW Development Methods Readings: MSD, Chapter 12 Lab Exercise.
 2002 Prentice Hall, Inc. All rights reserved Introduction Graphical User Interface (GUI) –Gives program distinctive “look” and “feel” –Provides.
1 CSC111H Graphical User Interfaces (GUIs) Introduction GUIs in Java Understanding Events A Simple Application The Containment Hierarchy Layout Managers.
– Advanced Programming P ROGRAMMING IN Lecture 21 Introduction to Swing.
1 Outline 1 Introduction 2 Overview of Swing Components 3 JLabel 4 Event Handling 5 TextFields 6 How Event Handling Works 7 JButton 8 JCheckBox and JRadioButton.
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.
Java Methods A & AB Object-Oriented Programming and Data Structures Maria Litvin ● Gary Litvin Copyright © 2006 by Maria Litvin, Gary Litvin, and Skylight.
Chapter 12 1 TOPIC 13B l Buttons and Action Listeners Window Interfaces Using Swing Objects.
Layout Managers Arranges and lays out the GUI components on a container.
Object Oriented Programming Engr. M. Fahad Khan Lecturer, Software Engineering Department University of Engineering & Technology, Taxila.
CS Fall 2012, Lab 09 Haohan Zhu. Boston University Slideshow Title Goes Here CS Fall 2012, Lab /20/2015 GUI - Graphical User Interface.
Object-Oriented Program Development Using Java: A Class-Centered Approach, Enhanced Edition.
Object-Oriented Software Engineering
Lec.10 (Chapter 8 & 9) GUI Jiang (Jen) ZHENG June 27 th, 2005.
CS1054: Lecture 21 - Graphical User Interface. Graphical User Interfaces vs. Text User Interface.
Swing / Session1 / 1 of 30 Module Introduction Distributed Computing in Java.
Java GUI. Graphical User Interface (GUI) a list a button a text field a label combo box checkbox.
Java GUI. Overview The ”idea” The ”idea” The Components The Components Listeners Listeners The Program The Program Interface Eventlistener Interface Eventlistener.
Review_6 AWT, Swing, ActionListener, and Graphics.
Field Trip #27 Using Java to Download Images and Sounds By Keith Lynn.
1 Chapter 16: Creating Windows. 2 Basics of GUI Programming How to create a Window. TryWindow.java You always need a JFrame component before creating.
Ajmer Singh PGT(IP) JAVA IDE Programming - I. Ajmer Singh PGT(IP) GUI (Graphical User Interface) It is an interface that uses a graphic entities along.
1 Layout Managers Layout managers –Provided for arranging GUI components –Provide basic layout capabilities –Processes layout details –Programmer can concentrate.
Chapter 10 - Writing Graphical User Interfaces1 Chapter 10 Writing Graphical User Interfaces.
Graphical User Interface (GUI)
Event Handling CS 21a: Introduction to Computing I First Semester,
User Interface Components. Layout Placement of UI components in a window – Size & Position Each component occupies a rectangular region in the window.
Applets. 9/04/2005 Copyright 2005, by the authors of these slides, and Ateneo de Manila University. All rights reserved L12: Applets Slide 2 Applets Usually.
5-1 GUIs and Events Rick Mercer. 5-2 Event-Driven Programming with Graphical user Interfaces  Most applications have graphical user interfaces to respond.
Review IS Overview: Data  Inside the application Collections  Outside the application Database XML  Getting/displaying Swing  Communicating.
Java Swing and Events Chris North cs3724: HCI. Presentations nadine edwards, steve terhar Vote: UI Hall of Fame/Shame?
GUIs & Event-Driven Programming Chapter 11 Review.
A Quick Java Swing Tutorial
Modular Event Handling
Graphical User Interfaces
“Form Ever Follows Function” Louis Henri Sullivan
CHAPTER 7 & 8 REVIEW QUESTIONS
Graphical User Interface (pronounced "gooey")
Ellen Walker Hiram College
Course Outcomes of Advanced Java Programming AJP (17625, C603)
Steps to Creating a GUI Interface
Presentation transcript:

Test Postmortem Dennis Burford

Question 1a Draw a component hierarchy for the following Java application.[5]

Question 1a JPanel JFrame (with its own content pane) JPanel JTextFieldJLabelJTextFieldJLabel JButton

Question 1b Name any three of the Layout Managers in Java.[3]

Question 1b Name any three of the Layout Managers in Java.[3] BorderLayout GridLayout FlowLayout GridBagLayout BoxLayout

Question 1c Give a statement in Java to set the Layout of myPanel to any Layout Manager. [2] JPanel myPanel = new JPanel();

Question 1c Give a statement in Java to set the Layout of myPanel to any Layout Manager. [2] JPanel myPanel = new JPanel(); myPanel.setLayout( new BorderLayout() );

Question 2a You are writing a Swing application and want the program to print out the message “Ouch!” every time you press a button. Show how you would do this for the following button:[4] JButton button = new JButton(“Press Me”);

Question 2a button.addActionListener( new ActionListener() { public void actionPerformed( ActionEvent e ) { System.out.println(“Ouch!”); } );

Question 2b Indicate what type of Listener is used for each of the following components:[2] i. JTextfield ii. JSlider

Question 2b Indicate what type of Listener is used for each of the following components:[2] i. JTextfield ActionListener ii. JSlider ChangeListener

Question 2c What is the difference between a Listener and an Adapter in Java?[2]

Question 2c What is the difference between a Listener and an Adapter in Java?[2] A Listener is an interface (have to implement methods). An Adapter implements a Listener interface using empty methods.

Question 3a Name the five stages of the traditional Software Lifecycle.[5]

Question 3a Name the five stages of the traditional Software Lifecycle.[5] 1. Specification 2. Design 3. Implementation 4. Testing 5. Maintenance

Question 3b Give two constraints you would consider when planning a software project.[2]

Question 3b Give two constraints you would consider when planning a software project.[2] Time, Money, Equipment, People,….

Question 4a What is the difference between a Milestone and a Deliverable?[2]

Question 4a What is the difference between a Milestone and a Deliverable?[2] A Milestone is the end of a distinct stage. A deliverable is a milestone with tangible results that are delivered to the client.

Question 4b Name two commonly used techniques for documenting/illustrating a project schedule. [2]

Question 4b Name two commonly used techniques for documenting/illustrating a project schedule. [2] 1. Table of Tasks 2. Gantt Chart

Question 4c Give an example of a common project pitfall (be sure to say what the problem is, rather than just giving a name). [1]

Question 4c Give an example of a common project pitfall (be sure to say what the problem is, rather than just giving a name). [1] One person taking all the responsibility for the project and doing all the work. (many others….)

Question 5a What are the two forms that an IP address can take? Give an example of each (they do not have to be real addresses). [2]

Question 5a What are the two forms that an IP address can take? Give an example of each (they do not have to be real addresses). [2] 1. DNS Form:casper2.cs.uct.ac.za 2. Dotted Quad Form:

Question 5b What two things together identify a program offering a service on a machine? [2]

Question 5b What two things together identify a program offering a service on a machine? [2] 1. IP Address 2. Port Number

Question 5c Give an example of a type of Internet application that uses the Client-Server model. [1]

Question 5c Give an example of a type of Internet application that uses the Client-Server model. [1] , web browser, irc, telnet, ftp, ….