/*
 * VentanaMenu.java
 *
 * Created on 18 de noviembre de 2005, 08:39 PM
 */

package javaapplication1;

/**
 *
 * @author  Administrador
 */
public class VentanaMenu extends javax.swing.JFrame {
    
    /** Creates new form VentanaMenu */
    public VentanaMenu() {
        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.
     */
    private void initComponents() {//GEN-BEGIN:initComponents
        jMenuBar1 = new javax.swing.JMenuBar();
        jMnuReservacion = new javax.swing.JMenu();
        jMItemAgregar = new javax.swing.JMenuItem();
        jMnuCancelacion = new javax.swing.JMenu();
        jMnuPasajeros = new javax.swing.JMenu();

        getContentPane().setLayout(null);

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        jMnuReservacion.setText("Reservacion");
        jMnuReservacion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMnuReservacionActionPerformed(evt);
            }
        });

        jMItemAgregar.setText("Agregar");
        jMItemAgregar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMItemAgregarActionPerformed(evt);
            }
        });

        jMnuReservacion.add(jMItemAgregar);

        jMenuBar1.add(jMnuReservacion);

        jMnuCancelacion.setText("Cancelacion");
        jMenuBar1.add(jMnuCancelacion);

        jMnuPasajeros.setText("Pasajeros");
        jMnuPasajeros.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMnuPasajerosActionPerformed(evt);
            }
        });

        jMenuBar1.add(jMnuPasajeros);

        setJMenuBar(jMenuBar1);

        pack();
    }//GEN-END:initComponents

    private void jMItemAgregarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMItemAgregarActionPerformed
        // TODO add your handling code here:
       JFAgregar v=new JFAgregar();
       v.show(); 
       System.out.println(evt.getActionCommand());
    }//GEN-LAST:event_jMItemAgregarActionPerformed

    private void jMnuPasajerosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMnuPasajerosActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jMnuPasajerosActionPerformed

    private void jMnuReservacionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMnuReservacionActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jMnuReservacionActionPerformed
    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new VentanaMenu().setVisible(true);
            }
        });
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuItem jMItemAgregar;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenu jMnuCancelacion;
    private javax.swing.JMenu jMnuPasajeros;
    private javax.swing.JMenu jMnuReservacion;
    // End of variables declaration//GEN-END:variables
    
}
