programacion netbens (uso menu bar)
USO Y MANIPULACION DEL MENU BAR
2.-OBJETIVO PRINCIPAL:
Saber el uso deI Swing Menu, con sus diferentes métodos y eventos que se los puede realizar, con el lenguaje de programación en java, con el compilador NetBeans 7.0.1.
3.-OBJETIVOS SECUNDARIOS:
Ingresar con el estudio de la programación orientada a objetos, mediante la utilización del SWING MENUS, del NetBeans 7.0.1, conla manipulación de Menu Bar,
Investigar las el ingreso de datos mediante el llamado a variables globales, así como su respectiva declaración.
Identificar como cargamos un nuevo proyecto dentro de otro proyecto.
4.-DESARROLLO DE LA PRÁCTICA
DEBER N°1
*EJERCICIO N°1 PRINCIPAL
REALIZAR UNA PANTALLA E INGRESAR A UN MENU CON LAS CLASES DE OTROS PROYECTOS.
Codificación://*****************************EJERCICIO N°1 PRINCIPAL*******************
private void jMenuItem10ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
//*************CERRAMOS TODO NUESTRO PROGRAMA*************
jOptionPane1.showMessageDialog(null,"GRACIAS POR UTLIZAR NUESTRO SISTEMA ADIOS","CAJE DE SALIDA",1, null);
System.exit(0);
}private void jMenuItem9ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
//*****************ACERCA DE****************
//LLAMO A VISUALIZAR A LA PANTALA ACERCA
ACERCA info=new ACERCA();
info.setVisible(true);
this.setVisible(false);
}
private voidjMenuItem7ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
//*************WORD****************
try
{
Runtime.getRuntime().exec("C:\\Program Files\\Microsoft Office\\Office14\\winword.exe");//permite ejecutar archivos ejecutables
}
catch(Exception e)
{
System.out.println("Excepcion");
}
}
private voidjMenuItem8ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
//*************EXCEL****************
try
{
Runtime.getRuntime().exec("C:\\Program Files\\Microsoft Office\\Office14\\excel.exe");//permite ejecutar archivos ejecutables
}
catch(Exception e)
{
System.out.println("Excepcion");
}
}
private voidjMenu4StateChanged(javax.swing.event.ChangeEvent evt) {
// TODO add your handling code here:
//********************ENLAZAMOS AL INTERNET¨****************
//LLAMAMOS A LA CLASE INTERNET
INTERNET inter=new INTERNET();
inter.setVisible(true);
this.setVisible(false);
}
private void jMenu1StateChanged(javax.swing.event.ChangeEvent evt) {// TODO add your handling code here:
//**********CARATULA**********
//LLAMAMOS A LA CLASE CARATULA**********
CARATULA DAT=new CARATULA();
DAT.setVisible(true);
this.setVisible(false);
}
private void jMenuItem6ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here://**************OPCIONES***********
//LLAMAMOS A LA VENTANA DE OPCIONES DE IMAGEN
OPCIONES DAT =new OPCIONES();
DAT.setVisible(true);
this.setVisible(false);
}
private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
//**************CHEQUEOS***********
//LLAMAMOS A LA VENTANA DE OPCIONES DECHEQUEOS
CHEQUEOS DAT =new CHEQUEOS();
DAT.setVisible(true);
this.setVisible(false);
}
private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
//**************CALCULADORA***********
//LLAMAMOS A LA VENTANA DE OPCIONES DE CALCULADORA
CALCULADORA DAT =new CALCULADORA();...
Regístrate para leer el documento completo.