Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Materia:
PROGRAMACION ORIENTADA OBJETOS
Semestre:
2°. Semestre.
Producto Académico:
TOPICO AVNAZADO
Presenta(n):
Carachure Lopez Jose Armando
Flores Torres Joshua
Murrieta Rangel Richard Sigifredo
Delgado Palagos Cristian de Jesus
Chavez Alvarado Agustin Alberto
Docente:
M.T.I. Dionisio Pérez Pérez.
1. INTRODUCCION
La programación orientada a objetos es una evolución de la programación procedural
basada en funciones. La POO nos posibilita la agrupación de secciones de código con
funciones habituales.
permite que el código sea reutilizable, organizado y fácil de mantener. Sigue el principio de
desarrollo de software utilizado por muchos programadores DRY (Don’t Repeat Yourself),
para evitar duplicar el código y crear de esta manera programas eficientes. Además, evita el
acceso no deseado a los datos o la exposición de código propietario mediante la
encapsulación y la abstracción
Esta contiene cuatro elementos importantes los cuales son las clases, los objetos, atributos y
estado, métodos y mensajes, herencia y polimorfismo. Una clase describe las estructuras de
datos que lo forman y las funciones asociadas con él.
Utilizamos la biblioteca de Java Swing es una biblioteca gráfica para Java. Incluye widgets
para interfaz gráfica de usuario tales como cajas de texto, botones, listas desplegables y
tablas.
Este es un framework para desarrollar interfaces gráficas para Java con independencia de la
plataforma. Sigue un simple modelo de programación por hilos, y posee tres características
importantes, es independiente de la plataforma, tiene libertad de extensibilidad, y es
personalizable.
Mediante el uso de Jlabel colocamos el Frame, pero además de texto podemos colocar
imágenes para dar una mejor presentación a nuestra ventana, son esenciales al momento
de crear una interfaz de usuario.
Página 2 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
2. OBJETIVOS (COMPETENCIAS)
• Aprender a desarrollar una interface para una aplicación que cumpla con los requisitos
de un buen diseño y usabilidad.
• Hacer uso de metáforas visuales en las aplicaciones.
DESARROLLO DE LA PRACTICA
Ventana 1.-
package programacionoou4_5;
import javax.swing.JOptionPane;
/**
* Creates new form Ventana1
*/
public Ventana1() {
initComponents();
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
Página 3 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
jMenu1.setText("jMenu1");
jMenu2.setText("jMenu2");
Página 4 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
jMenu3.setText("jMenu3");
jMenu4.setText("jMenu4");
jMenu5.setText("jMenu5");
popupMenu1.setLabel("popupMenu1");
Página 5 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
jFrame2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 300, Short.MAX_VALUE)
);
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("INICIO DE SESION");
setBackground(new java.awt.Color(51, 51, 255));
jLabel1.setIcon(new
javax.swing.ImageIcon("C:\\Users\\Paty9\\OneDrive\\Escritorio\\ESCRITORIO
ARMANDO\\account_member_login_user_icon_220048.png")); // NOI18N
Contrasenna.setText("Contraseña");
Acceder.setText("Acceder");
Acceder.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
AccederActionPerformed(evt);
}
});
usuario.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
usuarioActionPerformed(evt);
}
});
contrasenna.setText("jPasswordField1");
Cancelar.setText("Salir");
Cancelar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
CancelarActionPerformed(evt);
}
});
Página 6 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(100, 100, 100)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 177,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(Usuario, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(Contrasenna, javax.swing.GroupLayout.PREFERRED_SIZE, 166,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(26, 26, 26)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(Acceder)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(Cancelar))
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(contrasenna)
.addComponent(usuario, javax.swing.GroupLayout.PREFERRED_SIZE, 223,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(211, Short.MAX_VALUE))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(112, 112, 112)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 157,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel1Layout.createSequentialGroup()
Página 7 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(Usuario, javax.swing.GroupLayout.PREFERRED_SIZE, 24,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(usuario, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(Contrasenna, javax.swing.GroupLayout.PREFERRED_SIZE, 22,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(contrasenna, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(32, 32, 32)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(Acceder)
.addComponent(Cancelar))))
.addContainerGap(185, Short.MAX_VALUE))
);
pack();
setLocationRelativeTo(null);
}// </editor-fold>
Página 8 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
if (usuar.isEmpty() || pasw.isEmpty()){
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see
http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
Página 9 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(Ventana1.class.getName()).log(java.util.logging.Level.SEVE
RE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(Ventana1.class.getName()).log(java.util.logging.Level.SEVE
RE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(Ventana1.class.getName()).log(java.util.logging.Level.SEVE
RE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(Ventana1.class.getName()).log(java.util.logging.Level.SEVE
RE, null, ex);
}
//</editor-fold>
Página 10 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
Página 11 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
Página 12 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
Página 13 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
Ventana 2.-
package programacionoou4_5;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
this.jTable1.setModel(modelo);
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
Página 14 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
Página 15 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
jFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 300, Short.MAX_VALUE)
);
jMenu1.setText("jMenu1");
jMenuItem1.setText("jMenuItem1");
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Registro de nuevo usuario");
setBackground(new java.awt.Color(102, 102, 255));
setForeground(new java.awt.Color(102, 102, 255));
setIconImages(null);
setLocation(new java.awt.Point(12, 12));
jLabel1.setText("Nombre(s)");
jLabel2.setText("No. de empleado");
jLabel3.setText("Apellidos");
jLabel4.setText("Correo");
jTable1.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{},
{},
{},
{},
{}
},
new String [] {
}
));
jScrollPane1.setViewportView(jTable1);
RRegistrar.setText("Registrar");
RRegistrar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
RRegistrarActionPerformed(evt);
}
Página 16 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
});
RBorrar.setText("Borrar");
RBorrar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
RBorrarActionPerformed(evt);
}
});
RCancelar.setText("Cancelar");
RCancelar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
RCancelarActionPerformed(evt);
}
});
jLabel5.setText("Usuario");
jLabel6.setText("Contraseña");
jRadioButton1.setText("masculino");
jRadioButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton1ActionPerformed(evt);
}
});
jRadioButton2.setText("femenino");
jRadioButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton2ActionPerformed(evt);
}
});
jLabel7.setText("SEXO");
jLabel8.setIcon(new
javax.swing.ImageIcon("C:\\Users\\Paty9\\OneDrive\\Escritorio\\ESCRITORIO
ARMANDO\\loginmanager_10029.png")); // NOI18N
Página 17 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(52, 52, 52)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jSeparator1)
.addGroup(layout.createSequentialGroup()
.addGap(6, 6, 6)
.addComponent(jScrollPane1))
.addGroup(layout.createSequentialGroup()
.addComponent(RRegistrar)
.addGap(32, 32, 32)
.addComponent(RBorrar)
.addGap(18, 18, 18)
.addComponent(RCancelar)
.addGap(0, 0, Short.MAX_VALUE)))
.addContainerGap())
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addComponent(jLabel4, javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(jLabel3, javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 110,
Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 203,
Short.MAX_VALUE)
.addComponent(jTextField4))
Página 18 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 124,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 124,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jLabel5, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(27, 27, 27)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addComponent(jTextField5, javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.DEFAULT_SIZE, 152, Short.MAX_VALUE)
.addComponent(jTextField3, javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTextField6))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(31, 31, 31)
.addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 84,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(34, 34, 34)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jRadioButton2)
.addComponent(jRadioButton1))
.addGap(108, 108, 108))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
layout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel8)
.addGap(84, 84, 84))))))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
Página 19 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(72, 72, 72)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 24,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 24,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 120,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(4, 4, 4)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 24,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(29, 29, 29)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 24,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 24,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
Página 20 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 54,
Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(RRegistrar)
.addComponent(RBorrar)
.addComponent(RCancelar))
.addGap(28, 28, 28))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(15, 15, 15)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 27,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jRadioButton2))
.addGap(28, 28, 28))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
layout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 28,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
.addComponent(jRadioButton1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
.addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 183,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(12, 12, 12))
);
getAccessibleContext().setAccessibleName("");
Página 21 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
pack();
setLocationRelativeTo(null);
}// </editor-fold>
Página 22 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
}
else
JOptionPane.showInternalMessageDialog(null, "Seleccione una fila");
}
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see
http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(Ventana2.class.getName()).log(java.util.logging.Level.SEVE
RE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(Ventana2.class.getName()).log(java.util.logging.Level.SEVE
RE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(Ventana2.class.getName()).log(java.util.logging.Level.SEVE
RE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(Ventana2.class.getName()).log(java.util.logging.Level.SEVE
RE, null, ex);
}
//</editor-fold>
Página 23 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
Página 24 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
Página 25 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
Página 26 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
Página 27 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
Ventana 3.-
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package programacionoou4_5;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
/**
*
* @author Alberto
*/
public class Ventana3 extends javax.swing.JFrame {
DefaultTableModel modelo;
/**
* Creates new form Ventana3
*/
public Ventana3() {
initComponents();
modelo = new DefaultTableModel();
modelo.addColumn("CODIGO");
modelo.addColumn("PRODUCTO");
modelo.addColumn("PRECIO");
modelo.addColumn("PROVEEDOR");
modelo.addColumn("MODELO");
modelo.addColumn("CANTIDAD");
this.jTable1.setModel(modelo);
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
Página 28 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jLabel1.setText("CODIGO");
jLabel2.setText("PRODUCTO");
jTextField2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jTextField2ActionPerformed(evt);
}
});
jLabel3.setText("PRECIO");
Página 29 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
jTable1.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{},
{},
{},
{}
},
new String [] {
}
));
jScrollPane2.setViewportView(jTable1);
jButton1.setText("AGREGAR");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jButton2.setText("ELIMINAR");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
jLabel4.setText("PROVEEDOR");
jButton3.setText("REGRESAR AL MENU");
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
});
jButton4.setText("CANCELAR");
jLabel5.setText("MODELO");
jLabel6.setText("CANTIDAD");
Página 30 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
jLabel7.setIcon(new
javax.swing.ImageIcon("C:\\Users\\Paty9\\OneDrive\\Escritorio\\ESCRITORIO
ARMANDO\\herramientas.png")); // NOI18N
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(21, 21, 21)
.addComponent(jScrollPane2,
javax.swing.GroupLayout.PREFERRED_SIZE, 843, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(57, 57, 57)
.addComponent(jButton1)
.addGap(53, 53, 53)
.addComponent(jButton2)
.addGap(78, 78, 78)
.addComponent(jButton4)
.addGap(114, 114, 114)
.addComponent(jButton3)))
.addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE,
843, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(15, 15, 15))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel1Layout.createSequentialGroup()
Página 31 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 72,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING,
false)
.addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 72,
Short.MAX_VALUE)
.addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
.addGap(11, 11, 11)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE,
155, Short.MAX_VALUE)
.addComponent(jTextField2)
.addComponent(jTextField3)))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING,
false)
.addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel6,
javax.swing.GroupLayout.Alignment.LEADING))
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTextField4,
javax.swing.GroupLayout.DEFAULT_SIZE, 154, Short.MAX_VALUE)
.addComponent(jTextField5)))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(12, 12, 12)
.addComponent(jTextField6)))))
Página 32 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel7)
.addGap(110, 110, 110))))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(74, 74, 74)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1)
.addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(27, 27, 27)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3)
.addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addComponent(jLabel7))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel4)
.addComponent(jTextField5, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel5)
Página 33 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
.addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel6))
.addGap(16, 16, 16)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton1)
.addComponent(jButton4)
.addComponent(jButton2)
.addComponent(jButton3))
.addGap(38, 38, 38)
.addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 184,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(36, 36, 36))
);
pack();
setLocationRelativeTo(null);
Página 34 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
}// </editor-fold>
}
else
JOptionPane.showInternalMessageDialog(null, "Seleccione una fila");
}
Página 35 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see
http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(Ventana3.class.getName()).log(java.util.logging.Level.SEVE
RE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(Ventana3.class.getName()).log(java.util.logging.Level.SEVE
RE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(Ventana3.class.getName()).log(java.util.logging.Level.SEVE
RE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(Ventana3.class.getName()).log(java.util.logging.Level.SEVE
RE, null, ex);
}
//</editor-fold>
Página 36 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
}
});
}
Página 37 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
Página 38 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
Página 39 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
Página 40 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
Ventana 4.-
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package programacionoou4_5;
/**
*
* @author Armand
*/
public class Ventana4 extends javax.swing.JFrame {
/**
* Creates new form Ventana4
*/
public Ventana4() {
initComponents();
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
Página 41 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
jMenu1.setText("jMenu1");
jMenuItem1.setText("jMenuItem1");
jMenu2.setText("jMenu2");
jCheckBoxMenuItem1.setSelected(true);
jCheckBoxMenuItem1.setText("jCheckBoxMenuItem1");
jMenuItem2.setText("jMenuItem2");
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("CONTROL DE INVENTARIO");
setBackground(new java.awt.Color(204, 255, 255));
setIconImages(null);
jButton1.setText("baja de articulos");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jButton2.setText("Consultar existencia");
jButton3.setText("Menu dinamico");
jButton4.setText("Crear pedido");
jButton5.setText("Cerrar sesion");
jButton5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton5ActionPerformed(evt);
}
});
Página 42 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
jButton6.setText("Alta de articulos");
jButton6.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton6ActionPerformed(evt);
}
});
NuevoUsuario.setText("Nuevo usuario");
NuevoUsuario.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
NuevoUsuarioActionPerformed(evt);
}
});
jLabel1.setIcon(new
javax.swing.ImageIcon("C:\\Users\\Paty9\\OneDrive\\Escritorio\\ESCRITORIO
ARMANDO\\zarla-construye-fcil-1x1-2400x2400-20220117-brrrgkxq7m8m7v3r33gb.png")); //
NOI18N
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 190,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(jSeparator1)
.addComponent(jButton3, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, 190,
Short.MAX_VALUE)
.addComponent(jButton4, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
Página 43 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
.addComponent(jButton6, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
.addComponent(NuevoUsuario, javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(164, 164, 164)
.addComponent(jLabel1)
.addContainerGap(243, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel1Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 139,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(76, 76, 76))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(78, 78, 78)
.addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jButton6)
.addGap(34, 34, 34)
.addComponent(jButton1)
.addGap(38, 38, 38)
.addComponent(jButton2)
.addGap(38, 38, 38)
.addComponent(jButton3)
.addGap(36, 36, 36)
.addComponent(jButton4)
.addGap(50, 50, 50)
.addComponent(NuevoUsuario))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(77, 77, 77)
.addComponent(jLabel1)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton5)
.addContainerGap(74, Short.MAX_VALUE))
Página 44 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
);
pack();
setLocationRelativeTo(null);
}// </editor-fold>
Página 45 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
dispose();
}
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see
http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(Ventana4.class.getName()).log(java.util.logging.Level.SEVE
RE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(Ventana4.class.getName()).log(java.util.logging.Level.SEVE
RE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(Ventana4.class.getName()).log(java.util.logging.Level.SEVE
RE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(Ventana4.class.getName()).log(java.util.logging.Level.SEVE
RE, null, ex);
}
//</editor-fold>
Página 46 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
Página 47 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
Página 48 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
Página 49 de
50
INSTITUTO TECNOLOGICO SUPERIOR DE ALVARADO
Manual de Practicas Maestría en Sistemas Computacionales
CONCLUCION
Esta clase de programación tiene una identidad, una categorización, un polimorfismo y una
herencia para caracterizar un lenguaje orientado a objetos, dichos términos podrían utilizarse
de un modo libre uno de otro, sin embargo, ligados complementan una interacción sinérgica.
Son muchos los beneficios que se pueden obtener de la programación orientada a objetos
de los que podemos ver a simple vista.
Conocer la Programación Dirigida a Objetos es algo vital para cualquier programador que se
está iniciando en el planeta del desarrollo de programa
REFERENCIAS
Página 50 de
50