FORMAS DE IMPLEMENTAR LOS OYENTES. A).- El oyente en una clase independiente con el constructor con un argumento y usando el método getactioncommand.

Size: px
Start display at page:

Download "FORMAS DE IMPLEMENTAR LOS OYENTES. A).- El oyente en una clase independiente con el constructor con un argumento y usando el método getactioncommand."

Transcription

1 FORMAS DE IMPLEMENTAR LOS OYENTES A).- El oyente en una clase independiente con el constructor con un argumento y usando el método getactioncommand. public class VentanaOyente extends Frame{ private Oyente oyente; public VentanaOyente(){ super("ventana con oyente"); public void settipocara(int tipocara){ this.tipocara = tipocara; public int gettipocara(){ return tipocara; oyente = new Oyente(this); boton1.addactionlistener(oyente); boton2.addactionlistener(oyente); Rafael Rivera López 1

2 class Oyente implements ActionListener{ private VentanaOyente ventana; public Oyente(VentanaOyente origen){ this.ventana = origen; public void actionperformed(actionevent e) { String origen = e.getactioncommand(); if(origen.equals("carita Feliz")) ventana.settipocara(1); ventana.settipocara(2); ventana. B).- El oyente en una clase independiente con el constructor con dos argumentos MiPaint.java y OyenteBoton.java public class MiPaint extends Frame{ public MiPaint(){ super("uso del método paint"); Rafael Rivera López 2

3 public void settipocara(int tipocara){ this.tipocara = tipocara; OyenteBoton aboton1 = new OyenteBoton(1,this); OyenteBoton aboton2 = new OyenteBoton(2,this); boton1.addactionlistener(aboton1); boton2.addactionlistener(aboton2); public class OyenteBoton implements ActionListener{ private int valor; private MiPaint f; public OyenteBoton(int valor,mipaint f){ this.valor = valor; this.f = f; f.settipocara(valor); f. Rafael Rivera López 3

4 C).- La ventana es el oyente public class VentanaOyente extends Frame implements ActionListener{ public VentanaOyente(){ super("ventana como oyente"); boton1.addactionlistener(this); boton2.addactionlistener(this); if(e.getsource()==boton1) tipocara=1; tipocara=2; Rafael Rivera López 4

5 D).- El oyente es una clase interna public class VentanaOyenteInterno extends Frame{ public VentanaOyenteInterno(){ super("ventana con Oyente Interno"); OyenteBoton aboton1 = new OyenteBoton(1); OyenteBoton aboton2 = new OyenteBoton(2); boton1.addactionlistener(aboton1); boton2.addactionlistener(aboton2); Rafael Rivera López 5

6 class OyenteBoton implements ActionListener{ private int valor; public OyenteBoton(int valor){ this.valor = valor; tipocara = valor; E).- La ventana es el oyente de varios eventos public class VentanaOyente extends Frame implements ActionListener, WindowListener{ public VentanaOyente(){ super("ventana como oyente"); boton1.addactionlistener(this); boton2.addactionlistener(this); addwindowlistener(this); Rafael Rivera López 6

7 if(e.getsource()==boton1) tipocara=1; tipocara=2; public void windowopened(windowevent e) { public void windowclosing(windowevent e) { System.exit(0); public void windowclosed(windowevent e) { public void windowiconified(windowevent e) { public void windowdeiconified(windowevent e) { public void windowactivated(windowevent e) { public void windowdeactivated(windowevent e) { F).- El oyente es una clase interna anónima public class VentanaOyente extends Frame{ public VentanaOyente(){ super("ventana como oyente"); Rafael Rivera López 7

8 boton1.addactionlistener(new ActionListener(){ tipocara=1; ); boton2.addactionlistener(new ActionListener(){ tipocara=2; ); addwindowlistener(new WindowListener(){ public void windowopened(windowevent e) { public void windowclosing(windowevent e) { System.exit(0); public void windowclosed(windowevent e) { public void windowiconified(windowevent e) { public void windowdeiconified(windowevent e) { public void windowactivated(windowevent e) { public void windowdeactivated(windowevent e) { ); Rafael Rivera López 8

9 G).- El oyente a través de clases Adaptadoras public class VentanaOyente extends Frame{ public VentanaOyente(){ super("ventana como oyente"); boton1.addactionlistener(new ActionListener(){ tipocara=1; ); boton2.addactionlistener(new ActionListener(){ tipocara=2; Rafael Rivera López 9

10 ); addwindowlistener(new WindowAdapter(){ public void windowclosing(windowevent e) { System.exit(0); ); Rafael Rivera López 10

Graphical Interfaces

Graphical Interfaces Weeks 11&12 Graphical Interfaces All the programs that you have created until now used a simple command line interface, which is not user friendly, so a Graphical User Interface (GUI) should be used. The

More information

Graphical Interfaces

Graphical Interfaces Weeks 9&11 Graphical Interfaces All the programs that you have created until now used a simple command line interface, which is not user friendly, so a Graphical User Interface (GUI) should be used. The

More information

Interacción con GUIs

Interacción con GUIs Interacción con GUIs Delegation Event Model Fuente EVENTO Oyente suscripción Fuente Oyente suscripción EVENTO Adaptador EVENTO java.lang.object java.util.eventobject java.awt.awtevent java.awt.event. ActionEvent

More information

University of Cape Town ~ Department of Computer Science. Computer Science 1016S / 1011H ~ November Exam

University of Cape Town ~ Department of Computer Science. Computer Science 1016S / 1011H ~ November Exam Name: Please fill in your Student Number and Name. Student Number : Student Number: University of Cape Town ~ Department of Computer Science Computer Science 1016S / 1011H ~ 2009 November Exam Question

More information

1 of :32:42

1 of :32:42 1 2 package oop4_dat4_u; 3 4 /** 5 * 6 * @author Felix Rohrer 7 */ 8 public class Main { 9 10 /** 11 * @param args the command line arguments 12 */ 13 public static void main(string[]

More information

Example Programs. COSC 3461 User Interfaces. GUI Program Organization. Outline. DemoHelloWorld.java DemoHelloWorld2.java DemoSwing.

Example Programs. COSC 3461 User Interfaces. GUI Program Organization. Outline. DemoHelloWorld.java DemoHelloWorld2.java DemoSwing. COSC User Interfaces Module 3 Sequential vs. Event-driven Programming Example Programs DemoLargestConsole.java DemoLargestGUI.java Demo programs will be available on the course web page. GUI Program Organization

More information

GUI Program Organization. Sequential vs. Event-driven Programming. Sequential Programming. Outline

GUI Program Organization. Sequential vs. Event-driven Programming. Sequential Programming. Outline Sequential vs. Event-driven Programming Reacting to the user GUI Program Organization Let s digress briefly to examine the organization of our GUI programs We ll do this in stages, by examining three example

More information

Chapter 1 GUI Applications

Chapter 1 GUI Applications Chapter 1 GUI Applications 1. GUI Applications So far we've seen GUI programs only in the context of Applets. But we can have GUI applications too. A GUI application will not have any of the security limitations

More information

CSE 8B Intro to CS: Java

CSE 8B Intro to CS: Java CSE 8B Intro to CS: Java Winter, 2006 February 23 (Day 14) Menus Swing Event Handling Inner classes Instructor: Neil Rhodes JMenuBar container for menus Menus associated with a JFrame via JFrame.setMenuBar

More information

Java - Applications. The following code sets up an application with a drop down menu, as yet the menu does not do anything.

Java - Applications. The following code sets up an application with a drop down menu, as yet the menu does not do anything. Java - Applications C&G Criteria: 5.3.2, 5.5.2, 5.5.3 Java applets require a web browser to run independently of the Java IDE. The Dos based console applications will run outside the IDE but have no access

More information

Chapter 14. More Swing

Chapter 14. More Swing Chapter 14 More Swing Menus Making GUIs Pretty (and More Functional) Box Containers and Box Layout Managers More on Events and Listeners Another Look at the Swing Class Hierarchy Chapter 14 Java: an Introduction

More information

Programming Languages and Techniques (CIS120e)

Programming Languages and Techniques (CIS120e) Programming Languages and Techniques (CIS120e) Lecture 29 Nov. 19, 2010 Swing I Event- driven programming Passive: ApplicaHon waits for an event to happen in the environment When an event occurs, the applicahon

More information

Control Flow: Overview CSE3461. An Example of Sequential Control. Control Flow: Revisited. Control Flow Paradigms: Reacting to the User

Control Flow: Overview CSE3461. An Example of Sequential Control. Control Flow: Revisited. Control Flow Paradigms: Reacting to the User CSE3461 Control Flow Paradigms: Reacting to the User Control Flow: Overview Definition of control flow: The sequence of execution of instructions in a program. Control flow is determined at run time by

More information

กล ม API ท ใช. Programming Graphical User Interface (GUI) Containers and Components 22/05/60

กล ม API ท ใช. Programming Graphical User Interface (GUI) Containers and Components 22/05/60 กล ม API ท ใช Programming Graphical User Interface (GUI) AWT (Abstract Windowing Toolkit) และ Swing. AWT ม ต งต งแต JDK 1.0. ส วนมากจะเล กใช และแทนท โดยr Swing components. Swing API ปร บปร งความสามารถเพ

More information

Functors - Objects That Act Like Functions

Functors - Objects That Act Like Functions Steven Zeil October 25, 2013 Contents 1 Functors in Java 2 1.1 Functors............. 2 1.2 Immediate Classes....... 6 2 Functors and GUIs 8 2.1 Java Event Listeners....... 10 3 Functors in C++ 22 3.1 operator()............

More information

Course: CMPT 101/104 E.100 Thursday, November 23, 2000

Course: CMPT 101/104 E.100 Thursday, November 23, 2000 Course: CMPT 101/104 E.100 Thursday, November 23, 2000 Lecture Overview: Week 12 Announcements Assignment 6 Expectations Understand Events and the Java Event Model Event Handlers Get mouse and text input

More information

The AWT Event Model 9

The AWT Event Model 9 The AWT Event Model 9 Course Map This module covers the event-based GUI user input mechanism. Getting Started The Java Programming Language Basics Identifiers, Keywords, and Types Expressions and Flow

More information

CSEN401 Computer Programming Lab. Topics: Graphical User Interface Window Interfaces using Swing

CSEN401 Computer Programming Lab. Topics: Graphical User Interface Window Interfaces using Swing CSEN401 Computer Programming Lab Topics: Graphical User Interface Window Interfaces using Swing Prof. Dr. Slim Abdennadher 22.3.2015 c S. Abdennadher 1 Swing c S. Abdennadher 2 AWT versus Swing Two basic

More information

Advanced Java Programming (17625) Event Handling. 20 Marks

Advanced Java Programming (17625) Event Handling. 20 Marks Advanced Java Programming (17625) Event Handling 20 Marks Specific Objectives To write event driven programs using the delegation event model. To write programs using adapter classes & the inner classes.

More information

The Abstract Windowing Toolkit. Java Foundation Classes. Swing. In April 1997, JavaSoft announced the Java Foundation Classes (JFC).

The Abstract Windowing Toolkit. Java Foundation Classes. Swing. In April 1997, JavaSoft announced the Java Foundation Classes (JFC). The Abstract Windowing Toolkit Since Java was first released, its user interface facilities have been a significant weakness The Abstract Windowing Toolkit (AWT) was part of the JDK form the beginning,

More information

BM214E Object Oriented Programming Lecture 13

BM214E Object Oriented Programming Lecture 13 BM214E Object Oriented Programming Lecture 13 Events To understand how events work in Java, we have to look closely at how we use GUIs. When you interact with a GUI, there are many events taking place

More information

11/7/12. Discussion of Roulette Assignment. Objectives. Compiler s Names of Classes. GUI Review. Window Events

11/7/12. Discussion of Roulette Assignment. Objectives. Compiler s Names of Classes. GUI Review. Window Events Objectives Event Handling Animation Discussion of Roulette Assignment How easy/difficult to refactor for extensibility? Was it easier to add to your refactored code? Ø What would your refactored classes

More information

GUI Programming: Swing and Event Handling

GUI Programming: Swing and Event Handling GUI Programming: Swing and Event Handling Sara Sprenkle 1 Announcements No class next Tuesday My Fourth of July present to you: No quiz! Assignment 3 due today Review Collections: List, Set, Map Inner

More information

Swing II CHAPTER WINDOW LISTENERS 1034 Example: A Window Listener Inner Class 1036 The dispose Method 1040 The WindowAdapter Class 1041

Swing II CHAPTER WINDOW LISTENERS 1034 Example: A Window Listener Inner Class 1036 The dispose Method 1040 The WindowAdapter Class 1041 CHAPTER 19 Swing II 19.1 WINDOW LISTENERS 1034 Example: A Window Listener Inner Class 1036 The dispose Method 1040 The WindowAdapter Class 1041 19.2 ICONS AND SCROLL BARS 1042 Icons 1042 Scroll Bars 1049

More information

Swing II Window Listeners Icons and Scroll Bars The Graphics Class Colors 1044

Swing II Window Listeners Icons and Scroll Bars The Graphics Class Colors 1044 18.1 Window Listeners 1002 Example: A Window Listener Inner Class 1004 The dispose Method 1008 The WindowAdapter Class 1009 18.2 Icons and Scroll Bars 1010 Icons 1010 Scroll Bars 1017 Example: Components

More information

Tool Kits, Swing. Overview. SMD158 Interactive Systems Spring Tool Kits in the Abstract. An overview of Swing/AWT

Tool Kits, Swing. Overview. SMD158 Interactive Systems Spring Tool Kits in the Abstract. An overview of Swing/AWT INSTITUTIONEN FÖR Tool Kits, Swing SMD158 Interactive Systems Spring 2005 Jan-28-05 2002-2005 by David A. Carr 1 L Overview Tool kits in the abstract An overview of Swing/AWT Jan-28-05 2002-2005 by David

More information

GUI Design. Overview of Part 1 of the Course. Overview of Java GUI Programming

GUI Design. Overview of Part 1 of the Course. Overview of Java GUI Programming GUI Design Michael B. Spring Department of Information Science and Telecommunications University of Pittsburgh spring@imap.pitt.edu http://www.sis.pitt.edu /~spring Overview of Part 1 of the Course Demystifying

More information

Java Programming Unit 6. Inner Classes. Intro to Apples. Installing Apache Tomcat Server.

Java Programming Unit 6. Inner Classes. Intro to Apples. Installing Apache Tomcat Server. Java Programming Unit 6 Inner Classes. Intro to Apples. Installing Apache Tomcat Server. Swing Adapters Swing adapters are classes that implement empty funchons required by listener interfaces. You need

More information

COSC 123 Computer Creativity. Graphics and Events. Dr. Ramon Lawrence University of British Columbia Okanagan

COSC 123 Computer Creativity. Graphics and Events. Dr. Ramon Lawrence University of British Columbia Okanagan COSC 123 Computer Creativity Graphics and Events Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Key Points 1) Draw shapes, text in various fonts, and colors. 2) Build

More information

Java Graphical User Interfaces AWT (Abstract Window Toolkit) & Swing

Java Graphical User Interfaces AWT (Abstract Window Toolkit) & Swing Java Graphical User Interfaces AWT (Abstract Window Toolkit) & Swing Rui Moreira Some useful links: http://java.sun.com/docs/books/tutorial/uiswing/toc.html http://www.unix.org.ua/orelly/java-ent/jfc/

More information

OBJECT ORIENTED PROGRAMMING. Java GUI part 1 Loredana STANCIU Room B616

OBJECT ORIENTED PROGRAMMING. Java GUI part 1 Loredana STANCIU Room B616 OBJECT ORIENTED PROGRAMMING Java GUI part 1 Loredana STANCIU loredana.stanciu@upt.ro Room B616 What is a user interface That part of a program that interacts with the user of the program: simple command-line

More information

Inheritance (continued) Inheritance

Inheritance (continued) Inheritance Objectives Chapter 11 Inheritance and Polymorphism Learn about inheritance Learn about subclasses and superclasses Explore how to override the methods of a superclass Examine how constructors of superclasses

More information

Programming Language Concepts: Lecture 8

Programming Language Concepts: Lecture 8 Programming Language Concepts: Lecture 8 Madhavan Mukund Chennai Mathematical Institute madhavan@cmi.ac.in http://www.cmi.ac.in/~madhavan/courses/pl2009 PLC 2009, Lecture 8, 11 February 2009 GUIs and event

More information

JAVA NOTES GRAPHICAL USER INTERFACES

JAVA NOTES GRAPHICAL USER INTERFACES 1 JAVA NOTES GRAPHICAL USER INTERFACES Terry Marris 24 June 2001 5 TEXT AREAS 5.1 LEARNING OUTCOMES By the end of this lesson the student should be able to understand how to get multi-line input from the

More information

VK Computer Games Game Development Fundamentals

VK Computer Games Game Development Fundamentals VK Computer Games Game Development Fundamentals Horst Pichler & Mathias Lux Universität Klagenfurt This work is licensed under a Creative Commons Attribution-NonCommercial- ShareAlike 2.0 License. See

More information

Propedéutico de Programación

Propedéutico de Programación Propedéutico de Programación Coordinación de Ciencias Computacionales Semana 4, Segunda Parte Dra. Pilar Gómez Gil Versión 1. 24.06.08 http://ccc.inaoep.mx/~pgomez/cursos/programacion/ Chapter 3 ADT Unsorted

More information

Java AWT Windows, Text, & Graphics

Java AWT Windows, Text, & Graphics 2 AWT Java AWT Windows, Text, & Graphics The Abstract Windows Toolkit (AWT) contains numerous classes and methods that allow you to create and manage applet windows and standard windows that run in a GUI

More information

GUI. Overview: JFC - Java Foundation Classes. JFC: Java Foundation Classes. Graphical User Interfaces. GUI-based Applications. containment hierarchy:

GUI. Overview: JFC - Java Foundation Classes. JFC: Java Foundation Classes. Graphical User Interfaces. GUI-based Applications. containment hierarchy: GUI Graphical User Interfaces Reference: A Programmer s Guide to Java Certification: A Comprehensive Primer Chapters 12, 13, 14, and 17 CS211, Spring 2000. KAM GUI.fm 1/64 GUI-based Applications Developing

More information

Apéndice A. Código fuente de aplicación desarrollada para probar. implementación de IPv6

Apéndice A. Código fuente de aplicación desarrollada para probar. implementación de IPv6 Apéndice A Código fuente de aplicación desarrollada para probar implementación de IPv6 import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.io.*; import java.net.*; import java.util.enumeration;

More information

The Design and Implementation of Multimedia Software

The Design and Implementation of Multimedia Software Chapter 3 Programs The Design and Implementation of Multimedia Software David Bernstein Jones and Bartlett Publishers www.jbpub.com David Bernstein (jbpub.com) Multimedia Software Jones and Bartlett 1

More information

GUÍAS COMPLEMENTARIAS

GUÍAS COMPLEMENTARIAS GUÍAS COMPLEMENTARIAS C A P Í T U L O V I GUÍAS COMPLEMENTARIAS 255 Todos los documentos listados a continuación y emitidos hasta la fecha, así como futuros desarrollos pueden encontrarse para su descarga

More information

The Java Swing Toolkit

The Java Swing Toolkit WHAT IS SWING?... 2 SIMPLE EXAMPLE... 3 HOW TO START A SWING APPLICATION... 4 LABELS, TEXT BOXES AND BUTTONS... 5 HANDLING BUTTON CLICK EVENTS... 6 Which Button?... 6 EVENT HANDLING IN GENERAL... 7 Using

More information

Default Route de la configuración en el EIGRP

Default Route de la configuración en el EIGRP Default Route de la configuración en el EIGRP Contenido Introducción prerrequisitos Requisitos Componentes Utilizados Configurar Diagrama de la red del r1 del r2 R3 Method-1 usando la ruta predeterminado

More information

JAVA NOTES GRAPHICAL USER INTERFACES

JAVA NOTES GRAPHICAL USER INTERFACES 1 JAVA NOTES GRAPHICAL USER INTERFACES Terry Marris July 2001 8 DROP-DOWN LISTS 8.1 LEARNING OUTCOMES By the end of this lesson the student should be able to understand and use JLists understand and use

More information

PRÁCTICO 1: MODELOS ESTÁTICOS INGENIERÍA INVERSA DIAGRAMAS DE CLASES

PRÁCTICO 1: MODELOS ESTÁTICOS INGENIERÍA INVERSA DIAGRAMAS DE CLASES PRÁCTICO 1: MODELOS ESTÁTICOS INGENIERÍA INVERSA DIAGRAMAS DE CLASES Una parte importante dentro del proceso de re-ingeniería de un sistema es la ingeniería inversa del mismo, es decir, la obtención de

More information

Arrays, Exception Handling, Interfaces, Introduction To Swing

Arrays, Exception Handling, Interfaces, Introduction To Swing Arrays, Exception Handling, Interfaces, Introduction To Swing Arrays: Definition An array is an ordered collection of items; an item in an array is called an element of the array. By item we mean a primitive,

More information

Example 3-1. Password Validation

Example 3-1. Password Validation Java Swing Controls 3-33 Example 3-1 Password Validation Start a new empty project in JCreator. Name the project PasswordProject. Add a blank Java file named Password. The idea of this project is to ask

More information

(Incomplete) History of GUIs

(Incomplete) History of GUIs CMSC 433 Programming Language Technologies and Paradigms Spring 2004 Graphical User Interfaces April 20, 2004 (Incomplete) History of GUIs 1973: Xerox Alto 3-button mouse, bit-mapped display, windows 1981:

More information

AWT DIALOG CLASS. Dialog control represents a top-level window with a title and a border used to take some form of input from the user.

AWT DIALOG CLASS. Dialog control represents a top-level window with a title and a border used to take some form of input from the user. http://www.tutorialspoint.com/awt/awt_dialog.htm AWT DIALOG CLASS Copyright tutorialspoint.com Introduction Dialog control represents a top-level window with a title and a border used to take some form

More information

AWT CHOICE CLASS. Choice control is used to show pop up menu of choices. Selected choice is shown on the top of the menu.

AWT CHOICE CLASS. Choice control is used to show pop up menu of choices. Selected choice is shown on the top of the menu. http://www.tutorialspoint.com/awt/awt_choice.htm AWT CHOICE CLASS Copyright tutorialspoint.com Introduction Choice control is used to show pop up menu of choices. Selected choice is shown on the top of

More information

SOME BACKGROUND ON DESIGN PATTERNS

SOME BACKGROUND ON DESIGN PATTERNS 10 SOME BACKGROUND ON DESIGN PATTERNS The term design patterns sounds a bit formal to the uninitiated and can be somewhat off-putting when you first encounter it. But, in fact, design patterns are just

More information

Java 6. Network programming

Java 6. Network programming Java 6 Network programming Internet Protocol (IP) IP addresses 32-bit number used to identify machines on the network e.g., 156.17.16.240 is the IP address of www.pwr.wroc.pl 127.0.0.1 always refers to

More information

Building Graphical User Interfaces. Overview

Building Graphical User Interfaces. Overview Building Graphical User Interfaces 4.1 Overview Constructing GUIs Interface components GUI layout Event handling 2 1 GUI Principles Components: GUI building blocks. Buttons, menus, sliders, etc. Layout:

More information

Object Oriented Programming. I. Object Based Programming II. Object Oriented Programming

Object Oriented Programming. I. Object Based Programming II. Object Oriented Programming Systems programming Object Oriented Programming I. Object Based Programming II. Object Oriented Programming Telematics Engineering M. Carmen Fernández Panadero mcfp@it.uc3m.es 2010 1

More information

6.092 Introduction to Software Engineering in Java January (IAP) 2009

6.092 Introduction to Software Engineering in Java January (IAP) 2009 MIT OpenCourseWare http://ocw.mit.edu 6.092 Introduction to Software Engineering in Java January (IAP) 2009 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

More information

Laborator 2 Aplicatii Java

Laborator 2 Aplicatii Java Laborator 2 Aplicatii Java Introducere in programarea vizuala - Pachetul AWT Scrieti, compilati si rulati toate exemplele din acest laborator: 1. import java.awt.*; class First extends Frame First() Button

More information

Overview. Building Graphical User Interfaces. GUI Principles. AWT and Swing. Constructing GUIs Interface components GUI layout Event handling

Overview. Building Graphical User Interfaces. GUI Principles. AWT and Swing. Constructing GUIs Interface components GUI layout Event handling Overview Building Graphical User Interfaces Constructing GUIs Interface components GUI layout Event handling 4.1 GUI Principles AWT and Swing Components: GUI building blocks. Buttons, menus, sliders, etc.

More information

Resumen. Una sola cámara Robot móvil Visión computacional Resultados experimentales

Resumen. Una sola cámara Robot móvil Visión computacional Resultados experimentales Resumen Este artículo describe un método para adquirir la forma 3D de un objeto y estimar la posición de robot por medio de observar un objeto desconocido. Una sola cámara Robot móvil Visión computacional

More information

Anexo A: Implementación pasarela SMS/SIP

Anexo A: Implementación pasarela SMS/SIP Anexo A: Implementación pasarela SMS/SIP SMStoSIP.java Anexo A: Implementación pasarela SMS/SIP SMStoSIP.java package com.ericsson; import java.io.file; import java.io.fileinputstream; import java.util.properties;

More information

AWT COLOR CLASS. Introduction. Class declaration. Field

AWT COLOR CLASS. Introduction. Class declaration. Field http://www.tutorialspoint.com/awt/awt_color.htm AWT COLOR CLASS Copyright tutorialspoint.com Introduction The Color class states colors in the default srgb color space or colors in arbitrary color spaces

More information

Chapter 13 Lab Advanced GUI Applications Lab Objectives. Introduction. Task #1 Creating a Menu with Submenus

Chapter 13 Lab Advanced GUI Applications Lab Objectives. Introduction. Task #1 Creating a Menu with Submenus Chapter 13 Lab Advanced GUI Applications Lab Objectives Be able to add a menu to the menu bar Be able to use nested menus Be able to add scroll bars, giving the user the option of when they will be seen.

More information

Chapter 13 Lab Advanced GUI Applications

Chapter 13 Lab Advanced GUI Applications Gaddis_516907_Java 4/10/07 2:10 PM Page 113 Chapter 13 Lab Advanced GUI Applications Objectives Be able to add a menu to the menu bar Be able to use nested menus Be able to add scroll bars, giving the

More information

Programming Languages and Techniques (CIS120)

Programming Languages and Techniques (CIS120) Programming Languages and Techniques (CIS120) Lecture 35 November 29, 2017 Swing II: Building GUIs Inner Classes Chapter 29 Announcements Game Project Complete Code Due: December 11 th NO LATE SUBMISSIONS

More information

The colours used in architecture must be intense, logical and fertile. Los colores usados en arquitectura tiene que ser intensos, logicos y fértiles.

The colours used in architecture must be intense, logical and fertile. Los colores usados en arquitectura tiene que ser intensos, logicos y fértiles. NANOSPECTRUM The colours used in architecture must be intense, logical and fertile. Antonio Gaudi Los colores usados en arquitectura tiene que ser intensos, logicos y fértiles. Antonio Gaudi NANOSPECTRUM

More information

AWT WINDOW CLASS. The class Window is a top level window with no border and no menubar. It uses BorderLayout as default layout manager.

AWT WINDOW CLASS. The class Window is a top level window with no border and no menubar. It uses BorderLayout as default layout manager. http://www.tutorialspoint.com/awt/awt_window.htm AWT WINDOW CLASS Copyright tutorialspoint.com Introduction The class Window is a top level window with no border and no menubar. It uses BorderLayout as

More information

CSA 1019 Imperative and OO Programming

CSA 1019 Imperative and OO Programming CSA 1019 Imperative and OO Programming GUI and Event Handling Mr. Charlie Abela Dept. of of Artificial Intelligence Objectives Getting familiar with UI UI features MVC view swing package layout managers

More information

Building Graphical User Interfaces. GUI Principles

Building Graphical User Interfaces. GUI Principles Building Graphical User Interfaces 4.1 GUI Principles Components: GUI building blocks Buttons, menus, sliders, etc. Layout: arranging components to form a usable GUI Using layout managers. Events: reacting

More information

b) Use one of your methods to calculate the area of figure c.

b) Use one of your methods to calculate the area of figure c. Task 9: 1. Look at the polygons below. a) Describe at least three different methods for calculating the areas of these polygons. While each method does not necessarily have to work for all three figures,

More information

AWT TEXTFIELD CLASS. Constructs a new empty text field with the specified number of columns.

AWT TEXTFIELD CLASS. Constructs a new empty text field with the specified number of columns. http://www.tutorialspoint.com/awt/awt_textfield.htm AWT TEXTFIELD CLASS Copyright tutorialspoint.com Introduction The textfield component allows the user to edit single line of text.when the user types

More information

Module 5 The Applet Class, Swings. OOC 4 th Sem, B Div Prof. Mouna M. Naravani

Module 5 The Applet Class, Swings. OOC 4 th Sem, B Div Prof. Mouna M. Naravani Module 5 The Applet Class, Swings OOC 4 th Sem, B Div 2016-17 Prof. Mouna M. Naravani The layout manager helps lay out the components held by this container. When you set a layout to null, you tell the

More information

Propedéutico de Programación

Propedéutico de Programación Propedéutico de Programación Coordinación de Ciencias Computacionales 5/13 Material preparado por: Dra. Pilar Gómez Gil Chapter 15 Pointers, Dynamic Data, and Reference Types Dale/Weems Recall that in

More information

Programming Languages and Techniques (CIS120)

Programming Languages and Techniques (CIS120) Programming Languages and Techniques (CIS120) Lecture 35 November 28, 2018 Swing II: Inner Classes and Layout Chapter 30 Announcements Game Project Complete Code Due: December 10 th NO LATE SUBMISSIONS

More information

Anexos. Diseño y construcción de un puente grúa automatizado de precisión

Anexos. Diseño y construcción de un puente grúa automatizado de precisión Anexos Diseño y construcción de un puente grúa automatizado de precisión Nombre: Daniel Andrade García Especialidad: Ingeniería Electrónica Industrial y Automática Tutor: Inmaculada Martínez Teixidor Cotutor:

More information

CERTIFICACION SAGE Enterprise Management (X3)

CERTIFICACION SAGE Enterprise Management (X3) CERTIFICACION SAGE Enterprise Management (X3) Sage Enterprise Management (X3) Facilita mi trabajo Aumenta mi conocimiento Impulsa mi negocio RoadMap to Certification V11 RoadMap to Certification V11 1/3

More information

Laborator 3 Java. Introducere in programarea vizuala

Laborator 3 Java. Introducere in programarea vizuala Laborator 3 Java Introducere in programarea vizuala 1. Pachetele AWT si Swing. 2. Ferestre 3.1. Introduceti urmatorul program JAVA: public class Pv public static void main(string args[ ]) JFrame fer=new

More information

AWT QUADCURVE2D CLASS

AWT QUADCURVE2D CLASS AWT QUADCURVE2D CLASS http://www.tutorialspoint.com/awt/awt_quadcurve2d_class.htm Copyright tutorialspoint.com Introduction The QuadCurve2D class states a quadratic parametric curve segment in x, y coordinate

More information

OCTOBEAM. LED Lighting Effect USER MANUAL / MANUAL DE USUARIO

OCTOBEAM. LED Lighting Effect USER MANUAL / MANUAL DE USUARIO LED Lighting Effect USER MANUAL / MANUAL DE USUARIO PLEASE READ THE INSTRUCTIONS CAREFULLY BEFORE USE / POR FAVOR LEA LAS INSTRUCCIÓNES ANTES DE USAR 1. Overview OctoBeam White is a LED Lighting Bar with

More information

!"# $ %&# %####' #&() % # # # #&* # ## +, # -

!# $ %&# %####' #&() % # # # #&* # ## +, # - By Pep Jorge @joseplluisjorge Steema Software July 213!"# $ %&# %####' #&() % # # # #&* # ## +, # -. / " - $- * 11 1 1$ 2 11 1 3 4 / $ 5 5,+67 +68$ Copyright 213 Steema Software SL. Copyright Information.

More information

Curs 6. GUI Swing. POO - curs 6

Curs 6. GUI Swing. POO - curs 6 Curs 6 GUI Swing 1 JFC si Swing JFC = Java TM Foundation Classes, un grup de clase care permit construirea interfetelor grafice (GUI). Caracteristici: The Swing Components Pluggable Look and Feel Support

More information

Basicsof. JavaGUI and SWING

Basicsof. JavaGUI and SWING Basicsof programming3 JavaGUI and SWING GUI basics Basics of programming 3 BME IIT, Goldschmidt Balázs 2 GUI basics Mostly window-based applications Typically based on widgets small parts (buttons, scrollbars,

More information

Create Extensions App inventor 2 Build Extensions App Inventor, easy tutorial - Juan Antonio Villalpando

Create Extensions App inventor 2 Build Extensions App Inventor, easy tutorial - Juan Antonio Villalpando 1 von 11 09.01.2019, 10:12 Inicio FOROS Elastix - VoIP B4A (Basic4Android) App inventor 2 PHP - MySQL Estación meteorológica B4J (Basic4Java) ADB Shell - Android Arduino AutoIt (Programación) Visual Basic

More information

Administrivia. CSSS Movie Night: Zombieland & Iron Man Date: Thurs., Mar 11 Time: 6 10 pm Location: DMP 310 Free pop & popcorn for every attendee!

Administrivia. CSSS Movie Night: Zombieland & Iron Man Date: Thurs., Mar 11 Time: 6 10 pm Location: DMP 310 Free pop & popcorn for every attendee! Department of Computer Science Undergraduate Events Events this week Drop-In Resume and Cover Letter Editing (20 min. appointments) Date: Thurs., March 11 Time: 11:30 am 2:30 pm Location: Rm 255, ICICS/CS

More information

AWT LIST CLASS. The List represents a list of text items. The list can be configured to that user can choose either one item or multiple items.

AWT LIST CLASS. The List represents a list of text items. The list can be configured to that user can choose either one item or multiple items. http://www.tutorialspoint.com/awt/awt_list.htm AWT LIST CLASS Copyright tutorialspoint.com Introduction The List represents a list of text items. The list can be configured to that user can choose either

More information

dit UPM Tema 3: Concurrencia /clásicos /java Análisis y diseño de software José A. Mañas

dit UPM Tema 3: Concurrencia /clásicos /java Análisis y diseño de software José A. Mañas Análisis y diseño de software dit UPM Tema 3: Concurrencia /clásicos /java José A. Mañas 11.2.2017 método 1. identifique el estado campos privados del monitor 2. identifique métodos de test and set métodos

More information

Autor: Mary Luz Roa SUPPORT GUIDE FOURTH TERM

Autor: Mary Luz Roa SUPPORT GUIDE FOURTH TERM Autor: Mary Luz Roa SUPPORT GUIDE FOURTH TERM 2017 UNIDAD TEMATICA: PROGRAMACION PARA NIÑOS Logro: Identifica las herramientas básicas del programa Alice en la creación de animaciones en 3D, utilizando

More information

RISC Processor Simulator (SRC) INEL 4215: Computer Architecture and Organization Feb 14, 2005

RISC Processor Simulator (SRC) INEL 4215: Computer Architecture and Organization Feb 14, 2005 General Project Description RISC Processor Simulator (SRC) INEL 4215: Computer Architecture and Organization Feb 14, 2005 In the textbook, Computer Systems Design and Architecture by Heuring, we have the

More information

Table 3.1. Java Programs. Applets normally run in a virtual machine inside of a WWW browser. 1 They are executed

Table 3.1. Java Programs. Applets normally run in a virtual machine inside of a WWW browser. 1 They are executed Programs 3 Thus far this book has not used the word program and, instead, has used the phrase software product. This chapter explores a (somewhat) formal definition of the word program, and considers different

More information

Code zum Betreuten Programmieren vom , Blatt 10 Serialisierung und GUI

Code zum Betreuten Programmieren vom , Blatt 10 Serialisierung und GUI SS 2011 Fakultät für Angewandte Informatik Lehrprofessur für Informatik 06.07.2011 Prof. Dr. Robert Lorenz Code zum Betreuten Programmieren vom 06.07.2011, Blatt 10 Serialisierung und GUI 1 Die Klasse

More information

Theory Test 3A. University of Cape Town ~ Department of Computer Science. Computer Science 1016S ~ For Official Use

Theory Test 3A. University of Cape Town ~ Department of Computer Science. Computer Science 1016S ~ For Official Use Please fill in your Student Number and, optionally, Name. For Official Use Student Number : Mark : Name : Marker : University of Cape Town ~ Department of Computer Science Computer Science 1016S ~ 2007

More information

PROGRAMACIÓN ORIENTADA A OBJETOS

PROGRAMACIÓN ORIENTADA A OBJETOS PROGRAMACIÓN ORIENTADA A OBJETOS TEMA8: Excepciones y Entrada/Salida Manel Guerrero Tipos de Excepciones Checked Exception: The classes that extend Throwable class except RuntimeException and Error are

More information

1. Swing Note: Most of the stuff stolen from or from the jdk documentation. Most programs are modified or written by me. This section explains the

1. Swing Note: Most of the stuff stolen from or from the jdk documentation. Most programs are modified or written by me. This section explains the 1. Swing Note: Most of the stuff stolen from or from the jdk documentation. Most programs are modified or written by me. This section explains the various elements of the graphical user interface, i.e.,

More information

CS193k, Stanford Handout #16

CS193k, Stanford Handout #16 CS193k, Stanford Handout #16 Spring, 99-00 Nick Parlante Practice Final Final Exam Info Our regular exam time is Sat June 3rd in Skilling Aud (our regular room) from 3:30-5:30. The alternate will be Fri

More information

Eclipsing Your IDE. Figure 1 The first Eclipse screen.

Eclipsing Your IDE. Figure 1 The first Eclipse screen. Eclipsing Your IDE James W. Cooper I have been hearing about the Eclipse project for some months, and decided I had to take some time to play around with it. Eclipse is a development project (www.eclipse.org)

More information

3 Events and Listeners

3 Events and Listeners COMP1406/1006 - Design and Implementation of Computer Applications W2006 3 Events and Listeners What's in This Set of Notes? Now that we know how to design the "look" of a window by placing components

More information

Window Interfaces Using Swing Objects

Window Interfaces Using Swing Objects Chapter 12 Window Interfaces Using Swing Objects Event-Driven Programming and GUIs Swing Basics and a Simple Demo Program Layout Managers Buttons and Action Listeners Container Classes Text I/O for GUIs

More information

Event driven Programming

Event driven Programming Event driven Programming 1 Events GUIs are event driven Components can wait idly for something to happen - an event A button may wait to be pressed A checkbox may wait to be checked An event is a user

More information

Letter. Activity. Tips. Use sides and angles to name this quadrilateral.

Letter. Activity. Tips. Use sides and angles to name this quadrilateral. Chapter 12 School-Home Letter Dear Family, During the next few weeks, our math class will be learning about plane shapes. We will learn to identify polygons and describe them by their sides and angles.

More information

A sample print out is: is is -11 key entered was: w

A sample print out is: is is -11 key entered was: w Lab 9 Lesson 9-2: Exercise 1, 2 and 3: Note: when you run this you may need to maximize the window. The modified buttonhandler is: private static class ButtonListener implements ActionListener public void

More information

Part 3: Graphical User Interface (GUI) & Java Applets

Part 3: Graphical User Interface (GUI) & Java Applets 1,QWURGXFWLRQWR-DYD3URJUDPPLQJ (( Part 3: Graphical User Interface (GUI) & Java Applets EE905-GUI 7RSLFV Creating a Window Panels Event Handling Swing GUI Components ƒ Layout Management ƒ Text Field ƒ

More information

Important Change to the Year End W2 Process

Important Change to the Year End W2 Process Important Change to the Year End W2 Process This year you will be able to receive your W-2 electronically, download W-2 data to third party tax filing software, and request a copy of your W-2 tax statement.

More information