Altas, Bajas y Modificaciones de Registros en tabla MYSQL

Size: px
Start display at page:

Download "Altas, Bajas y Modificaciones de Registros en tabla MYSQL"

Transcription

1 Altas, Bajas y Modificaciones de Registros en tabla MYSQL 1. En MySql crear una base de datos de nombre EmpresaABC y dentro de ella la tabla Empleados con la siguiente estructura: DNI integer(8) Definir Indice Primary AYN char (40) DOMICILIO char (40) TELEFONO integer(10) 2. Crear un proyecto Java de nombre ABMEmpleados (recordar agregar MySql-connector Ver Cartilla). 3. Dentro de este proyecto agregar dos nuevos programas basados en JFrame con WindowsBuilder. El primer programa será AltaEmpleados.java y el segundo, BajaModifEmpleado.java CODIGO AltaEmpleados. import java.awt.eventqueue; import javax.swing.jframe; import javax.swing.jpanel; import javax.swing.border.emptyborder; import javax.swing.jlabel; import javax.swing.jtextfield; import javax.swing.jbutton; import java.awt.event.actionlistener; import java.awt.event.actionevent; import java.sql.connection; import java.sql.drivermanager; import java.sql.resultset; import java.sql.sqlexception; import java.sql.statement; import java.awt.color; import java.awt.font; import java.awt.component; public class AltaEmpleados extends JFrame { private JPanel contentpane; private JTextField tf2; private JTextField tf3; private JLabel labelresultado; private JTextField tf1; private JTextField tf4; /** * Launch the application. */ public static void main(string[] args) { EventQueue.invokeLater(new Runnable() { public void run() { AltaEmpleados frame = new AltaEmpleados(); frame.setvisible(true); catch (Exception e) { e.printstacktrace();

2 ); /** * Create the frame. */ public AltaEmpleados() { getcontentpane().setlayout(null); setdefaultcloseoperation(jframe.exit_on_close); setbounds(100, 50, 606, 405); contentpane = new JPanel(); contentpane.setborder(new EmptyBorder(5, 5, 5, 5)); setcontentpane(contentpane); contentpane.setlayout(null); settitle("alta de Empleados"); JLabel lbldni = new JLabel("DNI:"); lbldni.setbounds(23, 42, 89, 14); contentpane.add(lbldni); tf1 = new JTextField(); tf1.setcolumns(10); tf1.setbounds(128, 42, 140, 20); contentpane.add(tf1); JLabel lbldescripcindelartculo = new JLabel("Apellido y Nombres:"); lbldescripcindelartculo.setbounds(23, 73, 95, 14); contentpane.add(lbldescripcindelartculo); tf2 = new JTextField(); tf2.setbounds(128, 73, 250, 20); contentpane.add(tf2); tf2.setcolumns(30); JLabel lblprecio = new JLabel("Domicilio:"); lblprecio.setbounds(23, 101, 95, 14); contentpane.add(lblprecio); tf3 = new JTextField(); tf3.setbounds(128, 101, 250, 20); contentpane.add(tf3); tf3.setcolumns(30); JLabel lbltelfono = new JLabel("Tel\u00E9fono:"); lbltelfono.setbounds(23, 130, 89, 14); contentpane.add(lbltelfono); tf4 = new JTextField(); tf4.setcolumns(20); tf4.setbounds(128, 130, 140, 20); contentpane.add(tf4);

3 JButton btnalta = new JButton("Guardar"); btnalta.addactionlistener(new ActionListener() { public void actionperformed(actionevent arg0) { labelresultado.settext(""); Connection conexion=drivermanager.getconnection("jdbc:mysql://localhost/empresaabc","root",""); Statement comando1=conexion.createstatement(); ResultSet registro = comando1.executequery("select * from empleados where dni="+tf1.gettext()); if (registro.next()==true) { // la condicion indica que el dni existe labelresultado.settext("ya existe el DNI!"); else { Statement comando2=conexion.createstatement(); comando2.executeupdate("insert into empleados (dni, ayn, domicilio, telefono) values ("+ tf1.gettext()+",'"+tf2.gettext()+"','"+tf3.gettext()+"',"+tf4.gettext()+")"); ); labelresultado.settext("se registraron los datos"); tf1.settext(""); tf2.settext(""); tf3.settext(""); tf4.settext(""); conexion.close(); catch(sqlexception ex){ btnalta.setbounds(128, 180, 89, 23); contentpane.add(btnalta); labelresultado = new JLabel("resultado"); labelresultado.setfont(new Font("Arial", Font.BOLD, 11)); labelresultado.setforeground(color.red); labelresultado.setbounds(272, 184, 229, 14); contentpane.add(labelresultado); cargardriver(); private void cargardriver() { Class.forName("com.mysql.jdbc.Driver"); catch(exception ex) {

4 CODIGO BajaModifEmpleados. import java.awt.eventqueue; import javax.swing.jframe; import javax.swing.jpanel; import javax.swing.border.emptyborder; import javax.swing.jlabel; import javax.swing.jtextfield; import javax.swing.jbutton; import java.awt.event.actionlistener; import java.awt.event.actionevent; import java.sql.connection; import java.sql.drivermanager; import java.sql.resultset; import java.sql.sqlexception; import java.sql.statement; import java.awt.color; import java.awt.font; public class BajaModifEmpleado extends JFrame { private JPanel contentpane; private JTextField tf2; private JTextField tf3; private JLabel labelresultado; private JTextField tf1; private JTextField tf4; private JButton btnborrar, btnmodificar, btnbuscar; /** * Launch the application. */ public static void main(string[] args) { EventQueue.invokeLater(new Runnable() { public void run() { BajaModifEmpleado frame = new BajaModifEmpleado(); frame.setvisible(true); catch (Exception e) { e.printstacktrace(); ); /**

5 * Create the frame. */ public BajaModifEmpleado() { getcontentpane().setlayout(null); setdefaultcloseoperation(jframe.exit_on_close); setbounds(100, 50, 606, 405); contentpane = new JPanel(); contentpane.setborder(new EmptyBorder(5, 5, 5, 5)); setcontentpane(contentpane); contentpane.setlayout(null); settitle("baja Modificacion de Empleados"); JLabel lbldni = new JLabel("DNI:"); lbldni.setbounds(23, 42, 89, 14); contentpane.add(lbldni); tf1 = new JTextField(); tf1.setcolumns(10); tf1.setbounds(128, 42, 140, 20); contentpane.add(tf1); JLabel lbldescripcindelartculo = new JLabel("Apellido y Nombres:"); lbldescripcindelartculo.setbounds(23, 73, 95, 14); contentpane.add(lbldescripcindelartculo); tf2 = new JTextField(); tf2.setbounds(128, 73, 250, 20); contentpane.add(tf2); tf2.setcolumns(30); JLabel lblprecio = new JLabel("Domicilio:"); lblprecio.setbounds(23, 101, 95, 14); contentpane.add(lblprecio); tf3 = new JTextField(); tf3.setbounds(128, 101, 250, 20); contentpane.add(tf3); tf3.setcolumns(30); JLabel lbltelfono = new JLabel("Tel\u00E9fono:"); lbltelfono.setbounds(23, 130, 89, 14); contentpane.add(lbltelfono); tf4 = new JTextField(); tf4.setcolumns(20); tf4.setbounds(128, 130, 140, 20); contentpane.add(tf4); labelresultado = new JLabel("resultado"); labelresultado.setfont(new Font("Arial", Font.BOLD, 11)); labelresultado.setforeground(color.red);

6 labelresultado.setbounds(130, 172, 229, 14); contentpane.add(labelresultado); btnborrar = new JButton("Borrar"); btnborrar.addactionlistener(new ActionListener() { public void actionperformed(actionevent arg0) { labelresultado.settext(""); Connection conexion=drivermanager.getconnection("jdbc:mysql://localhost/empresaabc","root",""); Statement comando=conexion.createstatement(); int cantidad = comando.executeupdate("delete from empleados where dni="+tf1.gettext()); if (cantidad==1) { tf1.settext(""); tf2.settext(""); tf3.settext(""); tf4.settext(""); labelresultado.settext("se borro el empleado"); else { labelresultado.settext("no existe el DNI"); conexion.close(); catch(sqlexception ex){ ); btnborrar.setbounds(23, 214, 133, 23); contentpane.add(btnborrar); btnborrar.setenabled(false); //... btnmodificar = new JButton("Modificar"); btnmodificar.addactionlistener(new ActionListener() { public void actionperformed(actionevent e) { labelresultado.settext(""); Connection conexion=drivermanager.getconnection("jdbc:mysql://localhost/empresaabc","root",""); Statement comando=conexion.createstatement(); int cantidad = comando.executeupdate("update empleados set ayn='" + tf2.gettext() + "'," + "domicilio= '" + tf3.gettext() + "'," + "telefono=" + tf4.gettext() + " where dni="+tf1.gettext()); if (cantidad==1) {

7 labelresultado.settext("se modifico el registro del empleado"); else { labelresultado.settext("no existe el DNI"); conexion.close(); catch(sqlexception ex){ ); btnmodificar.setbounds(166, 214, 140, 23); contentpane.add(btnmodificar); btnmodificar.setenabled(false); //... JButton btnbuscar = new JButton("Buscar"); btnbuscar.addactionlistener(new ActionListener() { public void actionperformed(actionevent arg0) { labelresultado.settext(""); Connection conexion=drivermanager.getconnection("jdbc:mysql://localhost/empresaabc","root",""); Statement comando1=conexion.createstatement(); tf2.settext(""); tf3.settext(""); tf4.settext(""); ResultSet registro = comando1.executequery("select * from empleados where dni="+tf1.gettext()); if (registro.next()==false) { // la condicion indica que el dni NO existe labelresultado.settext("el DNI No EXISTE!"); else { labelresultado.settext("el DNI EXISTE..."); tf2.settext(registro.getstring("ayn")); tf3.settext(registro.getstring("domicilio")); tf4.settext(registro.getstring("telefono")); btnborrar.setenabled(true); btnmodificar.setenabled(true); conexion.close(); catch(sqlexception ex){

8 ); btnbuscar.setbounds(289, 38, 89, 23); contentpane.add(btnbuscar); cargardriver(); private void cargardriver() { Class.forName("com.mysql.jdbc.Driver"); catch(exception ex) {

Apéndice C: Código Fuente del Programa DBConnection.java

Apéndice C: Código Fuente del Programa DBConnection.java Apéndice C: Código Fuente del Programa DBConnection.java import java.sql.*; import java.io.*; import java.*; import java.util.*; import java.net.*; public class DBConnection Connection pgsqlconn = null;

More information

Homework/Program #5 Solutions

Homework/Program #5 Solutions Homework/Program #5 Solutions Problem #1 (20 points) Using the standard Java Scanner class. Look at http://natch3z.blogspot.com/2008/11/read-text-file-using-javautilscanner.html as an exampleof using the

More information

Advanced Network Programming Lab using Java. Angelos Stavrou

Advanced Network Programming Lab using Java. Angelos Stavrou Advanced Network Programming Lab using Java Angelos Stavrou Table of Contents A simple Java Client...3 A simple Java Server...4 An advanced Java Client...5 An advanced Java Server...8 A Multi-threaded

More information

11. Applets, normal window applications, packaging and sharing your work

11. Applets, normal window applications, packaging and sharing your work 11. Applets, normal window applications, packaging and sharing your work In this chapter Converting Full Screen experiments into normal window applications, Packaging and sharing applications packaging

More information

DHBW Karlsruhe, Vorlesung Programmieren, Remote Musterlösungen

DHBW Karlsruhe, Vorlesung Programmieren, Remote Musterlösungen DHBW Karlsruhe, Vorlesung Programmieren, Remote Musterlösungen Aufgabe 1 RMI - TimeService public interface TimeServerInterface extends Remote { public String gettime() throws RemoteException; import java.util.date;

More information

ICOM 4015: Advanced Programming

ICOM 4015: Advanced Programming ICOM 4015: Advanced Programming Lecture 10 Reading: Chapter Ten: Inheritance Copyright 2009 by John Wiley & Sons. All rights reserved. Chapter 10 Inheritance Chapter Goals To learn about inheritance To

More information

public class demo1swing extends JFrame implements ActionListener{

public class demo1swing extends JFrame implements ActionListener{ import java.io.*; import java.net.*; import java.io.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; public class demo1swing extends JFrame implements ActionListener JButton demodulacion;

More information

Using A Frame for Output

Using A Frame for Output Eventos Roteiro Frames Formatting Output Event Handling Entering Data Using Fields in a Frame Creating a Data Entry Field Using a Field Reading Data in an Event Handler Handling Multiple Button Events

More information

// Correntista. //Conta Corrente. package Banco; public class Correntista { String nome, sobrenome; int cpf;

// Correntista. //Conta Corrente. package Banco; public class Correntista { String nome, sobrenome; int cpf; // Correntista public class Correntista { String nome, sobrenome; int cpf; public Correntista(){ nome = "zé"; sobrenome = "Pereira"; cpf = 123456; public void setnome(string n){ nome = n; public void setsobrenome(string

More information

Tema: Encriptación por Transposición

Tema: Encriptación por Transposición import java.awt.*; import java.awt.event.*; import javax.swing.*; public class PrincipalSO extends JApplet implements ActionListener { // Declaración global JLabel lblclave, lblencriptar, lblencriptado,

More information

COMPUTACIÓN ORIENTADA A SERVICIOS (PRÁCTICA) Dr. Mauricio Arroqui EXA-UNICEN

COMPUTACIÓN ORIENTADA A SERVICIOS (PRÁCTICA) Dr. Mauricio Arroqui EXA-UNICEN COMPUTACIÓN ORIENTADA A SERVICIOS (PRÁCTICA) Dr. Mauricio Arroqui EXA-UNICEN Actividad Crear un servicio REST y un cliente para el mismo ejercicio realizado durante la práctica para SOAP. Se requiere la

More information

CSS 543 Program 3: Online Tic-Tac-Toe Game Professor: Munehiro Fukuda Due date: see the syllabus

CSS 543 Program 3: Online Tic-Tac-Toe Game Professor: Munehiro Fukuda Due date: see the syllabus CSS 543 Program 3: Online Tic-Tac-Toe Game Professor: Munehiro Fukuda Due date: see the syllabus 1. Purpose This assignment exercises how to write a peer-to-peer communicating program using non-blocking

More information

INTRODUCTION TO COMPUTER PROGRAMMING. Richard Pierse. Class 7: Object-Oriented Programming. Introduction

INTRODUCTION TO COMPUTER PROGRAMMING. Richard Pierse. Class 7: Object-Oriented Programming. Introduction INTRODUCTION TO COMPUTER PROGRAMMING Richard Pierse Class 7: Object-Oriented Programming Introduction One of the key issues in programming is the reusability of code. Suppose that you have written a program

More information

Appendix B Task 2: questionnaire and artefacts

Appendix B Task 2: questionnaire and artefacts Appendix B Task 2: questionnaire and artefacts This section shows the questionnaire, the UML class and sequence diagrams, and the source code provided for the task 1 (T2) Buy a Ticket Unsuccessfully. It

More information

Fondamenti di Java. Introduzione alla costruzione di GUI (graphic user interface)

Fondamenti di Java. Introduzione alla costruzione di GUI (graphic user interface) Fondamenti di Java Introduzione alla costruzione di GUI (graphic user interface) component - container - layout Un Container contiene [0 o +] Components Il Layout specifica come i Components sono disposti

More information

How Scala Improved Our Java

How Scala Improved Our Java How Scala Improved Our Java Sam Reid PhET Interactive Simulations University of Colorado http://spot.colorado.edu/~reids/ PhET Interactive Simulations Provides free, open source educational science simulations

More information

DATABASDESIGN FÖR INGENJÖRER - 1DL124

DATABASDESIGN FÖR INGENJÖRER - 1DL124 1 DATABASDESIGN FÖR INGENJÖRER - 1DL124 Sommar 2007 En introduktionskurs i databassystem http://user.it.uu.se/~udbl/dbt-sommar07/ alt. http://www.it.uu.se/edu/course/homepage/dbdesign/st07/ Kjell Orsborn

More information

Informatik II. // ActionListener hinzufügen btnconvert.addactionlistener(this); super.setdefaultcloseoperation(jframe.

Informatik II. // ActionListener hinzufügen btnconvert.addactionlistener(this); super.setdefaultcloseoperation(jframe. Universität Augsburg, Institut für Informatik Sommersemester 2006 Prof. Dr. Werner Kießling 20. Juli. 2006 M. Endres, A. Huhn, T. Preisinger Lösungsblatt 11 Aufgabe 1: Währungsrechner CurrencyConverter.java

More information

Learning Curl By Way of Java

Learning Curl By Way of Java Rev 6 2/Oct/07 Farokh Morshed Learning Curl By Way of Java This is a short article on learning Curl by way of Java. I hope that Java programmers that want to learn Curl can use this note as a high level

More information

ATSBA: Advanced Technologies Supporting Business Areas

ATSBA: Advanced Technologies Supporting Business Areas ATSBA: Advanced Technologies Supporting Business Areas Software Engineering 1 Introduction 1 1 Introduction - What is Software Engineering? 1 Introduction - What is Software Engineering? 1.1 Definitions

More information

Swing. A Quick Tutorial on Programming Swing Applications

Swing. A Quick Tutorial on Programming Swing Applications Swing A Quick Tutorial on Programming Swing Applications 1 MVC Model View Controller Swing is based on this design pattern It means separating the implementation of an application into layers or components:

More information

CS 335 Lecture 06 Java Programming GUI and Swing

CS 335 Lecture 06 Java Programming GUI and Swing CS 335 Lecture 06 Java Programming GUI and Swing Java: Basic GUI Components Swing component overview Event handling Inner classes and anonymous inner classes Examples and various components Layouts Panels

More information

public class Craps extends JFrame implements ActionListener { final int WON = 0,LOST =1, CONTINUE = 2;

public class Craps extends JFrame implements ActionListener { final int WON = 0,LOST =1, CONTINUE = 2; Lecture 15 The Game of "Craps" In the game of "craps" a player throws a pair of dice. If the sum on the faces of the pair of dice after the first toss is 7 or 11 the player wins; if the sum on the first

More information

Part IV: Java Database Programming

Part IV: Java Database Programming Part IV: Java Database Programming This part of the book discusses how to use Java to develop database projects. You will learn JDBC interfaces and classes, create and process SQL statements, obtaining

More information

Medientechnik. Übung MVC

Medientechnik. Übung MVC Medientechnik Übung MVC Heute Model-View-Controller (MVC) Model programmieren Programmlogik Programmdaten Controller programmieren GUI Model Observer-Pattern Observable (Model) verwaltet Daten Observer

More information

http://netbeans.org/kb/docs/java/gui-functionality.html?print=yes

http://netbeans.org/kb/docs/java/gui-functionality.html?print=yes Page 1 of 6 Introduction to GUI Building Contributed by Saleem Gul and Tomas Pavek, maintained by Ruth Kusterer and Irina Filippova This beginner tutorial teaches you how to create a simple graphical user

More information

Graphical User Interfaces

Graphical User Interfaces M14_REGE1813_02_SE_C14.qxd 2/10/10 3:43 PM Page 822 Chapter14 Graphical User Interfaces 14.1 GUI Basics Graphical Input and Output with Option Panes Working with Frames Buttons, Text Fields, and Labels

More information

CS108, Stanford Handout #33. Sockets

CS108, Stanford Handout #33. Sockets CS108, Stanford Handout #33 Fall, 2007-08 Nick Parlante Sockets Sockets Sockets make network connections between machines, but you just read/write/block on them like there were plain file streams. The

More information

Estructura de aplicación en PHP para System i

Estructura de aplicación en PHP para System i Estructura de aplicación en PHP para System i La aplicación esta diseñada para IBM DB2 en System i, UNIX y Windows. Se trata de la gestión de una entidad deportiva. A modo de ejemplo de como está desarrollada

More information

Cours de Java. Sciences-U Lyon. Java - Introduction Java - Fondamentaux Java Avancé. http://www.rzo.free.fr

Cours de Java. Sciences-U Lyon. Java - Introduction Java - Fondamentaux Java Avancé. http://www.rzo.free.fr Cours de Java Sciences-U Lyon Java - Introduction Java - Fondamentaux Java Avancé http://www.rzo.free.fr Pierre PARREND 1 Octobre 2004 Sommaire Java Introduction Java Fondamentaux Java Avancé GUI Graphical

More information

Chapter 11. Graphical User Interfaces

Chapter 11. Graphical User Interfaces Chapter 11. Graphical User Interfaces To this point in the text, our programs have interacted with their users to two ways: The programs in Chapters 1-5, implemented in Processing, displayed graphical

More information

Java is commonly used for deploying applications across a network. Compiled Java code

Java is commonly used for deploying applications across a network. Compiled Java code Module 5 Introduction to Java/Swing Java is commonly used for deploying applications across a network. Compiled Java code may be distributed to different machine architectures, and a native-code interpreter

More information

New Server Installation. Revisión: 13/10/2014

New Server Installation. Revisión: 13/10/2014 Revisión: 13/10/2014 I Contenido Parte I Introduction 1 Parte II Opening Ports 3 1 Access to the... 3 Advanced Security Firewall 2 Opening ports... 5 Parte III Create & Share Repositorio folder 8 1 Create

More information

Nexawebホワイトペーパー. Developing with Nexaweb ~ Nexaweb to Improve Development Productivity and Maintainability

Nexawebホワイトペーパー. Developing with Nexaweb ~ Nexaweb to Improve Development Productivity and Maintainability Nexawebホワイトペーパー Developing with Nexaweb ~ Nexaweb to Improve Development Productivity and Maintainability Nexaweb Technologies, Inc. February 2012 Overview Many companies today are creating rich internet

More information

1. DESCRIPCIÓN DE WEB SERVICES DE INTERCAMBIO DE DATOS CON NOTARIOS

1. DESCRIPCIÓN DE WEB SERVICES DE INTERCAMBIO DE DATOS CON NOTARIOS 1. DESCRIPCIÓN DE WEB SERVICES DE INTERCAMBIO DE DATOS CON NOTARIOS 1.1 Solicitud certificado:

More information

CS2506 Operating Systems II Lab 8, 8 th Tue/03 /2011 Java API

CS2506 Operating Systems II Lab 8, 8 th Tue/03 /2011 Java API Introduction The JDBC API was designed to keep simple things simple. This means that the JDBC makes everyday database tasks easy. In this lab you will learn about how Java interacts with databases. JDBC

More information

Programming with Java GUI components

Programming with Java GUI components Programming with Java GUI components Java includes libraries to provide multi-platform support for Graphic User Interface objects. The multi-platform aspect of this is that you can write a program on a

More information

Callbacks. Callbacks Copyright 2007 by Ken Slonneger 1

Callbacks. Callbacks Copyright 2007 by Ken Slonneger 1 Callbacks Callbacks refer to a mechanism in which a library or utility class provides a service to clients that are unknown to it when it is defined. Suppose, for example, that a server class creates a

More information

Tool. For. University Of Hyderabad

Tool. For. University Of Hyderabad Tool. For Signing & Verification Submitted To: Submitted By: Shri Patrick Kishore Chief Operating Officer Sujit Kumar Tiwari MCA, I Year University Of Hyderabad Certificate by Guide This is certifying

More information

How to Convert an Application into an Applet.

How to Convert an Application into an Applet. How to Convert an Application into an Applet. A java application contains a main method. An applet is a java program part of a web page and runs within a browser. I am going to show you three different

More information

GUIs with Swing. Principles of Software Construction: Objects, Design, and Concurrency. Jonathan Aldrich and Charlie Garrod Fall 2012

GUIs with Swing. Principles of Software Construction: Objects, Design, and Concurrency. Jonathan Aldrich and Charlie Garrod Fall 2012 GUIs with Swing Principles of Software Construction: Objects, Design, and Concurrency Jonathan Aldrich and Charlie Garrod Fall 2012 Slides copyright 2012 by Jeffrey Eppinger, Jonathan Aldrich, William

More information

Propiedades del esquema del Documento XML de envío:

Propiedades del esquema del Documento XML de envío: Web Services Envio y Respuesta DIPS Courier Tipo Operación: 122-DIPS CURRIER/NORMAL 123-DIPS CURRIER/ANTICIP Los datos a considerar para el Servicio Web DIN que se encuentra en aduana son los siguientes:

More information

Principles of Software Construction: Objects, Design and Concurrency. GUIs with Swing. toad 15-214. Spring 2013

Principles of Software Construction: Objects, Design and Concurrency. GUIs with Swing. toad 15-214. Spring 2013 Principles of Software Construction: Objects, Design and Concurrency GUIs with Swing 15-214 toad Spring 2013 Christian Kästner Charlie Garrod School of Computer Science 2012-13 C Garrod, C Kästner, J Aldrich,

More information

Section 6 Spring 2013

Section 6 Spring 2013 Print Your Name You may use one page of hand written notes (both sides) and a dictionary. No i-phones, calculators or any other type of non-organic computer. Do not take this exam if you are sick. Once

More information

Programa llamado insert.html

Programa llamado insert.html Programa llamado insert.html datos generales registro de Producto

More information

Prof. Edwar Saliba Júnior

Prof. Edwar Saliba Júnior package Conexao; 2 3 /** 4 * 5 * @author Cynthia Lopes 6 * @author Edwar Saliba Júnior 7 */ 8 import java.io.filenotfoundexception; 9 import java.io.ioexception; 10 import java.sql.sqlexception; 11 import

More information

1 Hour, Closed Notes, Browser open to Java API docs is OK

1 Hour, Closed Notes, Browser open to Java API docs is OK CSCI 143 Exam 2 Name 1 Hour, Closed Notes, Browser open to Java API docs is OK A. Short Answer For questions 1 5 credit will only be given for a correct answer. Put each answer on the appropriate line.

More information

5.17 GUI. Xiaoyi Jiang Informatik I Grundlagen der Programmierung

5.17 GUI. Xiaoyi Jiang Informatik I Grundlagen der Programmierung AWT vs. Swing AWT (Abstract Window Toolkit; Package java.awt) Benutzt Steuerelemente des darunterliegenden Betriebssystems Native Code (direkt für die Maschine geschrieben, keine VM); schnell Aussehen

More information

file://c:\dokumente und Einstellungen\Marco Favorito\Desktop\ScanCmds.html

file://c:\dokumente und Einstellungen\Marco Favorito\Desktop\ScanCmds.html file:c:\dokumente und Einstellungen\Marco Favorito\Desktop\ScanCmds.html Seite 1 von 5 ScanCmds.java ------------------------------------------------------------------------------- ScanCmds Demontration

More information

Java Appletek II. Applet GUI

Java Appletek II. Applet GUI THE INTERNET,mapped on the opposite page, is a scalefree network in that Java Appletek II. dis.'~tj port,from BYALBERTU\SZLOBARABASI ANDERICBONABEAU THE INTERNET,mapped on the opposite page, is a scalefree

More information

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. Exam Name MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. 1) Which of the following statements is false? A) A private method cannot be accessed by

More information

Math methods. Lecture Seven Math methods. GUI review Interest Calculator. Read Chapter 5, pg. 115

Math methods. Lecture Seven Math methods. GUI review Interest Calculator. Read Chapter 5, pg. 115 Lecture Seven Math methods GUI review Interest Calculator Math methods Math comparisons Math constants Formatting numbers Roll Dice program Random numbers Rounding numbers Casting Drill Read Chapter 5,

More information

Brazil + JDBC Juin 2001, douin@cnam.fr http://jfod.cnam.fr/tp_cdi/douin/

Brazil + JDBC Juin 2001, douin@cnam.fr http://jfod.cnam.fr/tp_cdi/douin/ Brazil + JDBC Juin 2001, douin@cnam.fr http://jfod.cnam.fr/tp_cdi/douin/ version du 26 Mai 2003 : JDBC-SQL et Brazil pré-requis : lecture de Tutorial JDBC de Sun Bibliographie Brazil [Bra00]www.sun.com/research/brazil

More information

GOPAL RAMALINGAM MEMORIAL ENGINEERING COLLEGE. Rajeshwari nagar, Panapakkam, Near Padappai, Chennai-601301.

GOPAL RAMALINGAM MEMORIAL ENGINEERING COLLEGE. Rajeshwari nagar, Panapakkam, Near Padappai, Chennai-601301. GOPAL RAMALINGAM MEMORIAL ENGINEERING COLLEGE Rajeshwari nagar, Panapakkam, Near Padappai, Chennai-601301. DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING OOAD LAB MANUAL Sub. Code/Sub. Name: CS2357-Object

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

Konzepte objektorientierter Programmierung

Konzepte objektorientierter Programmierung Konzepte objektorientierter Programmierung Prof. Dr. Peter Müller Werner Dietl Software Component Technology Exercises 5: Frameworks Wintersemester 05/06 2 Homework 1 Observer Pattern From: Gamma, Helm,

More information

Licence Informatique Année 2005-2006. Exceptions

Licence Informatique Année 2005-2006. Exceptions Université Paris 7 Java Licence Informatique Année 2005-2006 TD n 8 - Correction Exceptions Exercice 1 La méthode parseint est spécifiée ainsi : public static int parseint(string s) throws NumberFormatException

More information

New words to remember

New words to remember Finanza Toolbox Materials When you open a checking account you put money in the bank. Then you buy a book of checks from the bank. Using checks keeps you from having to carry cash with you. You can use

More information

public void setusername(string username) { this.username = username; } public void setname(string name) { this.name = name; }

public void setusername(string username) { this.username = username; } public void setname(string name) { this.name = name; } User-klassen package domain; import dk.au.hum.imv.persistence.db.databasepersistent; public class User extends DatabasePersistent { private String username; private String name; private String address;

More information

Final Project Report E3390 Electronic Circuit Design Lab. Electronic Notepad

Final Project Report E3390 Electronic Circuit Design Lab. Electronic Notepad Final Project Report E3390 Electronic Circuit Design Lab Electronic Notepad Keith Dronson Sam Subbarao Submitted in partial fulfillment of the requirements for the Bachelor of Science Degree May 10, 2008

More information

Java Classes. GEEN163 Introduction to Computer Programming

Java Classes. GEEN163 Introduction to Computer Programming Java Classes GEEN163 Introduction to Computer Programming Never interrupt someone doing what you said couldn't be done. Amelia Earhart Classes, Objects, & Methods Object-oriented programming uses classes,

More information

Schema XML_PGE.xsd. element GrupoInformes. attribute GrupoInformes/@version. XML_PGE.xsd unqualified qualified http://sgpfc.igae.minhap.

Schema XML_PGE.xsd. element GrupoInformes. attribute GrupoInformes/@version. XML_PGE.xsd unqualified qualified http://sgpfc.igae.minhap. Schema XML_PGE.xsd schema location: attribute form default: element form default: targetnamespace: XML_PGE.xsd unqualified qualified http://sgpfc.igae.minhap.es/xmlpge element GrupoInformes children Informe

More information

Essentials of the Java(TM) Programming Language, Part 1

Essentials of the Java(TM) Programming Language, Part 1 Essentials of the Java(TM) Programming Language, Part 1 http://developer.java.sun.com/developer...ining/programming/basicjava1/index.html Training Index Essentials of the Java TM Programming Language:

More information

JiST Graphical User Interface Event Viewer. Mark Fong mjf21@cornell.edu

JiST Graphical User Interface Event Viewer. Mark Fong mjf21@cornell.edu JiST Graphical User Interface Event Viewer Mark Fong mjf21@cornell.edu Table of Contents JiST Graphical User Interface Event Viewer...1 Table of Contents...2 Introduction...3 What it does...3 Design...3

More information

Eclipse Visual Editor: A GUI Building Tool

Eclipse Visual Editor: A GUI Building Tool Eclipse Visual Editor: A GUI Building Tool User interface designers can work in parallel with the software developers. Interface designers might use a tool as demonstrated here, to construct the interface.

More information

Remote Method Invocation

Remote Method Invocation 1 / 22 Remote Method Invocation Jean-Michel Richer jean-michel.richer@univ-angers.fr http://www.info.univ-angers.fr/pub/richer M2 Informatique 2010-2011 2 / 22 Plan Plan 1 Introduction 2 RMI en détails

More information

New words to remember

New words to remember Finanza Toolbox Materials Checking Accounts When you open a checking account you put money in the bank. Then you buy a book of checks from the bank. Using checks keeps you from having to carry cash with

More information

Java GUI Programming. Building the GUI for the Microsoft Windows Calculator Lecture 2. Des Traynor 2005

Java GUI Programming. Building the GUI for the Microsoft Windows Calculator Lecture 2. Des Traynor 2005 Java GUI Programming Building the GUI for the Microsoft Windows Calculator Lecture 2 Des Traynor 2005 So, what are we up to Today, we are going to create the GUI for the calculator you all know and love.

More information

POSIBILIDAD DE REALIZACIÓN DE PFC EN DELPHI (Luxembourg)

POSIBILIDAD DE REALIZACIÓN DE PFC EN DELPHI (Luxembourg) SUBDIRECCIÓN DE RELACIONES EXTERIORES ETSIAE UNIVERSIDAD POLITÉCNICA DE MADRID POSIBILIDAD DE REALIZACIÓN DE PFC EN DELPHI (Luxembourg) Los interesados deben presentar el formulario de solicitud antes

More information

Using JML to protect Java code against SQL injection. Johan Janssen 0213888 jjanssen@sci.ru.nl June 26, 2007

Using JML to protect Java code against SQL injection. Johan Janssen 0213888 jjanssen@sci.ru.nl June 26, 2007 Using JML to protect Java code against SQL injection Johan Janssen 0213888 jjanssen@sci.ru.nl June 26, 2007 1 Abstract There are a lot of potential solutions against SQL injection. The problem is that

More information

Introduction to the Java Programming Language

Introduction to the Java Programming Language Software Design Introduction to the Java Programming Language Material drawn from [JDK99,Sun96,Mitchell99,Mancoridis00] Java Features Write Once, Run Anywhere. Portability is possible because of Java virtual

More information

CERTIFICADO DE NIVEL INTERMEDIO IDIOMA: INGLÉS COMPRENSIÓN AUDITIVA

CERTIFICADO DE NIVEL INTERMEDIO IDIOMA: INGLÉS COMPRENSIÓN AUDITIVA CERTIFICADO DE NIVEL INTERMEDIO IDIOMA: INGLÉS CONVOCATORIA ORDINARIA DE 0 COMPRENSIÓN AUDITIVA CUMPLIMENTE LOS SIGUIENTES DATOS: APELLIDOS: NOMBRE: DNI: SEXO: EDAD (en 0): años (Marque con una X la respuesta

More information

Lösningsförslag till tentamen 121217

Lösningsförslag till tentamen 121217 Uppgift 1 Lösningsförslag till tentamen 121217 a) Utskriften blir: a = 5 och b = 10 a = 5 och b = 10 b) Utskriften blir 1 2 3 4 5 5 2 3 4 1 c) Utskriften blir 321 Uppgift 2 Med användning av dialogrutor:

More information

Extending Desktop Applications to the Web

Extending Desktop Applications to the Web Extending Desktop Applications to the Web Arno Puder San Francisco State University Computer Science Department 1600 Holloway Avenue San Francisco, CA 94132 arno@sfsu.edu Abstract. Web applications have

More information

DIPLOMADO DE JAVA - OCA

DIPLOMADO DE JAVA - OCA DIPLOMADO DE JAVA - OCA TABLA DE CONTENIDO INTRODUCCION... 3 ESTRUCTURA DEL DIPLOMADO... 4 Nivel I:... 4 Fundamentals of the Java Programming Language Java SE 7... 4 Introducing the Java Technology...

More information

Graphical User Interfaces in JAVA

Graphical User Interfaces in JAVA Chapter 6 Graphical User Interfaces in JAVA Contents 6.1 Introduction: The Modern User Interface............. 106 6.2 The Basic GUI Application....................... 107 6.2.1 JFrame and JPanel.........................

More information

Apéndice C: Esquemas de la base de datos

Apéndice C: Esquemas de la base de datos Apéndice C: Esquemas de la base de datos 141 Apéndice C Esquemas de las bases de datos de T E R R A Con el objetivo de hacer persistentes los objetos generados por T E R R A se escogió un sistema manejador

More information

LOS ANGELES UNIFIED SCHOOL DISTRICT Policy Bulletin

LOS ANGELES UNIFIED SCHOOL DISTRICT Policy Bulletin Policy Bulletin TITLE: NUMBER: ISSUER: Procedures for Requests for Educationally Related Records of Students with or Suspected of Having Disabilities DATE: February 9, 2015 Sharyn Howell, Executive Director

More information

qwertyuiopasdfghjklzxcvbnmqwerty uiopasdfghjklzxcvbnmqwertyuiopasd fghjklzxcvbnmqwertyuiopasdfghjklzx cvbnmqwertyuiopasdfghjklzxcvbnmq

qwertyuiopasdfghjklzxcvbnmqwerty uiopasdfghjklzxcvbnmqwertyuiopasd fghjklzxcvbnmqwertyuiopasdfghjklzx cvbnmqwertyuiopasdfghjklzxcvbnmq qwertyuiopasdfghjklzxcvbnmqwerty uiopasdfghjklzxcvbnmqwertyuiopasd fghjklzxcvbnmqwertyuiopasdfghjklzx cvbnmqwertyuiopasdfghjklzxcvbnmq INTRUSION DETECTION SYSTEM FOR GRID AND CLOUD COMPUTING wertyuiopasdfghjklzxcvbnmqwertyui

More information

Update a MS2.2 20060817

Update a MS2.2 20060817 Los cambios a realizar en la base de datos son los siguientes. Se ejecutarán en el phpmyadmin del servidor. A ser posible sobre una base de datos replicada, por si hay algún error. Si no se trata de una

More information

Manejo Basico del Servidor de Aplicaciones WebSphere Application Server 6.0

Manejo Basico del Servidor de Aplicaciones WebSphere Application Server 6.0 Manejo Basico del Servidor de Aplicaciones WebSphere Application Server 6.0 Ing. Juan Alfonso Salvia Arquitecto de Aplicaciones IBM Uruguay Slide 2 of 45 Slide 3 of 45 Instalacion Basica del Server La

More information

CITY OF LAREDO Application for Certification of Compliance for Utility Connection ($ 50.00 Application Fee Ordinance No.

CITY OF LAREDO Application for Certification of Compliance for Utility Connection ($ 50.00 Application Fee Ordinance No. CITY OF LAREDO Application for Certification of Compliance for Utility Connection ($ 50.00 Application Fee Ordinance No. 2012-O-158) Date of application: Applicant Address Telephone Cellular E-Mail Address

More information

Graphical User Interface (GUI), Part 2

Graphical User Interface (GUI), Part 2 Graphical User Interface (GUI), Part 2 Double Buffering Various components Menu Bar, Menu, and Menu Items Combo Box Table Java Beans For visual programming OOP: GUI, Part 2 1 Double Buffering [Source:

More information

Java and Databases. COMP514 Distributed Information Systems. Java Database Connectivity. Standards and utilities. Java and Databases

Java and Databases. COMP514 Distributed Information Systems. Java Database Connectivity. Standards and utilities. Java and Databases Java and Databases COMP514 Distributed Information Systems Java Database Connectivity One of the problems in writing Java, C, C++,, applications is that the programming languages cannot provide persistence

More information

2. Installieren des MySQL Workbench (Version 5.2.43) 3. Unter Database > Manage Connection folgende Werte eintragen

2. Installieren des MySQL Workbench (Version 5.2.43) 3. Unter Database > Manage Connection folgende Werte eintragen 1. Setup 1. Mit dieser Anleitung (http://www.unimarburg.de/fb12/sys/services/svc_more_html#svc_sql) eine Datenbank einrichten. 2. Installieren des MySQL Workbench (Version 5.2.43) 3. Unter Database > Manage

More information

Why Is This Important? Database Application Development. SQL in Application Code. Overview. SQL in Application Code (Contd.

Why Is This Important? Database Application Development. SQL in Application Code. Overview. SQL in Application Code (Contd. Why Is This Important? Database Application Development Chapter 6 So far, accessed DBMS directly through client tools Great for interactive use How can we access the DBMS from a program? Need an interface

More information

Essentials of the Java Programming Language

Essentials of the Java Programming Language Essentials of the Java Programming Language A Hands-On Guide by Monica Pawlan 350 East Plumeria Drive San Jose, CA 95134 USA May 2013 Part Number TBD v1.0 Sun Microsystems. Inc. All rights reserved If

More information

Cambridge IGCSE. www.cie.org.uk

Cambridge IGCSE. www.cie.org.uk Cambridge IGCSE About University of Cambridge International Examinations (CIE) Acerca de la Universidad de Cambridge Exámenes Internacionales. CIE examinations are taken in over 150 different countries

More information

LAYOUT MANAGERS. Layout Managers Page 1. java.lang.object. java.awt.component. java.awt.container. java.awt.window. java.awt.panel

LAYOUT MANAGERS. Layout Managers Page 1. java.lang.object. java.awt.component. java.awt.container. java.awt.window. java.awt.panel LAYOUT MANAGERS A layout manager controls how GUI components are organized within a GUI container. Each Swing container (e.g. JFrame, JDialog, JApplet and JPanel) is a subclass of java.awt.container and

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

N A T I O N A L M I S S I N G P E R S O N S P R O G R A M DNA

N A T I O N A L M I S S I N G P E R S O N S P R O G R A M DNA University of North Texas Center for Human Identification Family Reference Sample Evidence Registration Form Investigating Agency Information Investigating Agency: Agency Case No.: Address: ORI No.: NCIC

More information

Verbos modales. In this class we look at modal verbs, which can be a tricky feature of English grammar.

Verbos modales. In this class we look at modal verbs, which can be a tricky feature of English grammar. Verbos modales In this class we look at modal verbs, which can be a tricky feature of English grammar. We use Modal verbs in English to show: Probability,Possibility, Capability, Permission, ObligaCon,

More information

JDBC. It is connected by the Native Module of dependent form of h/w like.dll or.so. ex) OCI driver for local connection to Oracle

JDBC. It is connected by the Native Module of dependent form of h/w like.dll or.so. ex) OCI driver for local connection to Oracle JDBC 4 types of JDBC drivers Type 1 : JDBC-ODBC bridge It is used for local connection. ex) 32bit ODBC in windows Type 2 : Native API connection driver It is connected by the Native Module of dependent

More information

Schueler-Organisiertes Lernen am Beispiel von Grafischen Benutzer-Schnittstellen in Java Tag der Offenen Tür - GTS 2008

Schueler-Organisiertes Lernen am Beispiel von Grafischen Benutzer-Schnittstellen in Java Tag der Offenen Tür - GTS 2008 Schueler-Organisiertes Lernen am Beispiel von Grafischen Benutzer-Schnittstellen in Java Tag der Offenen Tür - GTS 2008 http://worgtsone.scienceontheweb.net/worgtsone/ - mailto: worgtsone @ hush.com Sa

More information

Graphical User Interface (GUI), Part 1

Graphical User Interface (GUI), Part 1 Graphical User Interface (GUI), Part 1 Applets The Model-View-Controller GUI Architecture Separated Model Architecture Abstract Windowing Toolkit (AWT) Java Foundation Classes (JFC) Note this is a huge

More information

An Android-based Instant Message Application

An Android-based Instant Message Application An Android-based Instant Message Application Qi Lai, Mao Zheng and Tom Gendreau Department of Computer Science University of Wisconsin - La Crosse La Crosse, WI 54601 mzheng@uwlax.edu Abstract One of the

More information

1.-Subject details Código Asignatura Créditos Idioma P NP Total 29701 Inglés I 2.4 3.6 6 Inglés

1.-Subject details Código Asignatura Créditos Idioma P NP Total 29701 Inglés I 2.4 3.6 6 Inglés Pág.: 1 de 12 1.-Subject details Código Asignatura Créditos Idioma P NP Total 29701 2.4 3.6 6 Inglés Titulación Carácter Curso Semestre Estudios Grado en protocolo y organización F. Básica 1º 1º Grado

More information

Señal RS232. d. codevilla v1.0

Señal RS232. d. codevilla v1.0 Señal RS232 SCI Señal desde y hacia el µc BREAK: Caracter con todos 0 lógicos IDLE: caracter con todos 1 lógicos SCI estructura simplificada Se terminó de transferir un caracter al shift register TDRE

More information

JIDE Action Framework Developer Guide

JIDE Action Framework Developer Guide JIDE Action Framework Developer Guide Contents PURPOSE OF THIS DOCUMENT... 1 WHAT IS JIDE ACTION FRAMEWORK... 1 PACKAGES... 3 MIGRATING FROM EXISTING APPLICATIONS... 3 DOCKABLEBARMANAGER... 9 DOCKABLE

More information

NAME IN WHICH BUSINESS IS OR WILL BE CONDUCTED NOMBRE EN EL CUAL EL NEGOCIO ES O SERA CONDOCIDO CITY CIUDAD STATE ESTADO ZIP CODIGO POSTAL

NAME IN WHICH BUSINESS IS OR WILL BE CONDUCTED NOMBRE EN EL CUAL EL NEGOCIO ES O SERA CONDOCIDO CITY CIUDAD STATE ESTADO ZIP CODIGO POSTAL COUNTY FILED BUSINESS # ASSUMED CERTIFICATE OF OWNERSHIP NEGOCIONO ARCHIVADO EN EL ESTADO NOMBRE ASUMIDO DE CERTIFICADO DE LA PROPIEDAD NOTICE: THE FILING OF THIS BUSINESS IS VALID ONLY FOR A PERIOD NOT

More information