vincular una bd desde mysql con netbeans. 7.3 file edit view navigate source refactor run debug...
TRANSCRIPT
![Page 1: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/1.jpg)
VINCULAR UNA BD
DESDE MySQL CON
NETBEANS.
DSAUPOO
CBTIS 37
![Page 2: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/2.jpg)
*Ir a la pestaña Tools en la barra
de arriba y elegir, Ant libraries
![Page 3: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/3.jpg)
*Seleccionar la opción
MySQL JDBC Driver
![Page 4: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/4.jpg)
![Page 5: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/5.jpg)
Introducir la contraseña
“123456”
![Page 6: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/6.jpg)
Finish
![Page 7: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/7.jpg)
MySQL server, ahora
aparece en Databases
![Page 8: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/8.jpg)
Clic derecho en las B.D que
utilizaremos, y conectar
![Page 9: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/9.jpg)
Crear un nuevo proyecto
![Page 10: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/10.jpg)
Java> Java Aplication
![Page 11: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/11.jpg)
Introducir nombre
![Page 12: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/12.jpg)
Clic derecho proyectofinal
![Page 13: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/13.jpg)
Se crea un Jframe Form
![Page 14: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/14.jpg)
*Seleccionamos Tabbed pane,
y un panel dentro de el
![Page 15: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/15.jpg)
*Clic derecho
proyectofinal>new>other
![Page 16: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/16.jpg)
*Swing GUI Forms>
Master/Detail sample form
![Page 17: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/17.jpg)
*Asignamos un nombre
![Page 18: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/18.jpg)
*Seleccionamos las bases
de datos
![Page 19: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/19.jpg)
*Seleccionamos la tabla
![Page 20: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/20.jpg)
Finish
![Page 21: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/21.jpg)
Se crea todo un diseño grafico
para esa base de datos
![Page 22: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/22.jpg)
Realizamos el mismo proceso
para otra base de datos
![Page 23: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/23.jpg)
Asignamos un nombre
![Page 24: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/24.jpg)
Seleccionamos la base de
datos
![Page 25: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/25.jpg)
Finish
![Page 26: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/26.jpg)
*Vamos a la primera pestaña
que se creo (en este caso
ProyectoFinal)
![Page 27: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/27.jpg)
*Colocamos el siguiente
comando: menuprincipal frm =
new menuprincipal();
frm.setVisible(true);
![Page 28: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/28.jpg)
*Copiamos los JFrames de las
bases de datos importadas
![Page 29: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/29.jpg)
*Y las copiamos en la parte de
menú principal, dentro de
JTabbed Panel
![Page 30: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/30.jpg)
*Copiamos la siguiente
![Page 31: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/31.jpg)
*E igualmente la pegamos
dentro de JTabbed Panel
![Page 32: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/32.jpg)
Colocamos un botón, y lo
nombramos “Salir”
![Page 33: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/33.jpg)
Doble clic a el, y colocamos
el siguiente comando
this.dispose();
![Page 34: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/34.jpg)
Corremos el JFrame
menuprincipal
![Page 35: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/35.jpg)
![Page 36: VINCULAR UNA BD DESDE MySQL CON NETBEANS. 7.3 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Library Name: MySQL JDBC Driver Classpath Sources Javadoc](https://reader030.vdocuments.site/reader030/viewer/2022020214/5aa4b09f7f8b9a185d8c5e6a/html5/thumbnails/36.jpg)