/*
 * 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 org.meteoinfo.map.forms;

/**
 *
 * @author wyq
 */
public class FrmOpenData extends javax.swing.JDialog {

    /**
     * Creates new form FrmOpenData
     * @param parent
     * @param modal
     */
    public FrmOpenData(javax.swing.JDialog parent, boolean modal) {
        super(parent, modal);
        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">//GEN-BEGIN:initComponents
    private void initComponents() {

        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu_OpenData = new javax.swing.JMenu();
        jMenuItem_NetCDF = new javax.swing.JMenuItem();
        jMenuItem_GrADS = new javax.swing.JMenuItem();
        jMenuItem_ARL = new javax.swing.JMenuItem();
        jMenu_HYSPLIT = new javax.swing.JMenu();
        jMenuItem_Traj = new javax.swing.JMenuItem();
        jMenuItem_Conc = new javax.swing.JMenuItem();
        jMenuItem_Particle = new javax.swing.JMenuItem();
        jMenu_ASCII = new javax.swing.JMenu();
        jMenuItem_LonLat = new javax.swing.JMenuItem();
        jMenuItem_Synop = new javax.swing.JMenuItem();
        jMenuItem_Metar = new javax.swing.JMenuItem();
        jSeparator1 = new javax.swing.JPopupMenu.Separator();
        jMenuItem_ESRI = new javax.swing.JMenuItem();
        jMenuItem_Surfer = new javax.swing.JMenuItem();
        jMenuItem_Micaps = new javax.swing.JMenuItem();
        jMenu_MM5 = new javax.swing.JMenu();
        jMenuItem_MM5_Output = new javax.swing.JMenuItem();
        jMenuItem_MM5_Inter = new javax.swing.JMenuItem();
        jMenuItem_AWX = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Open Data");

        jMenu_OpenData.setText("Open Data");

        jMenuItem_NetCDF.setText("NetCDF, GRIB, HDF...");
        jMenu_OpenData.add(jMenuItem_NetCDF);

        jMenuItem_GrADS.setText("GrADS Data");
        jMenu_OpenData.add(jMenuItem_GrADS);

        jMenuItem_ARL.setText("ARL Data");
        jMenu_OpenData.add(jMenuItem_ARL);

        jMenu_HYSPLIT.setText("HYSPLIT Data");

        jMenuItem_Traj.setText("Trajectory Data");
        jMenu_HYSPLIT.add(jMenuItem_Traj);

        jMenuItem_Conc.setText("Concentration Data");
        jMenu_HYSPLIT.add(jMenuItem_Conc);

        jMenuItem_Particle.setText("Particle Data");
        jMenu_HYSPLIT.add(jMenuItem_Particle);

        jMenu_OpenData.add(jMenu_HYSPLIT);

        jMenu_ASCII.setText("ASCII Data");

        jMenuItem_LonLat.setText("Lon/Lat Station Data");
        jMenu_ASCII.add(jMenuItem_LonLat);

        jMenuItem_Synop.setText("SYNOP Data");
        jMenu_ASCII.add(jMenuItem_Synop);

        jMenuItem_Metar.setText("METAR Data");
        jMenu_ASCII.add(jMenuItem_Metar);
        jMenu_ASCII.add(jSeparator1);

        jMenuItem_ESRI.setText("ESRI ASCII Grid Data");
        jMenu_ASCII.add(jMenuItem_ESRI);

        jMenuItem_Surfer.setText("Surfer ASCII Grid Data");
        jMenu_ASCII.add(jMenuItem_Surfer);

        jMenu_OpenData.add(jMenu_ASCII);

        jMenuItem_Micaps.setText("MICAPS Data");
        jMenu_OpenData.add(jMenuItem_Micaps);

        jMenu_MM5.setText("MM5 Data");

        jMenuItem_MM5_Output.setText("MM5 Output Data");
        jMenu_MM5.add(jMenuItem_MM5_Output);

        jMenuItem_MM5_Inter.setText("MM5 Intermediate Data");
        jMenuItem_MM5_Inter.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem_MM5_InterActionPerformed(evt);
            }
        });
        jMenu_MM5.add(jMenuItem_MM5_Inter);

        jMenu_OpenData.add(jMenu_MM5);

        jMenuItem_AWX.setText("AWX Data");
        jMenu_OpenData.add(jMenuItem_AWX);

        jMenuBar1.add(jMenu_OpenData);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 173, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 44, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

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

    /**
     * @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(FrmOpenData.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(FrmOpenData.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(FrmOpenData.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(FrmOpenData.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the dialog */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                FrmOpenData dialog = new FrmOpenData(new javax.swing.JDialog(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {
                    @Override
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem_ARL;
    private javax.swing.JMenuItem jMenuItem_AWX;
    private javax.swing.JMenuItem jMenuItem_Conc;
    private javax.swing.JMenuItem jMenuItem_ESRI;
    private javax.swing.JMenuItem jMenuItem_GrADS;
    private javax.swing.JMenuItem jMenuItem_LonLat;
    private javax.swing.JMenuItem jMenuItem_MM5_Inter;
    private javax.swing.JMenuItem jMenuItem_MM5_Output;
    private javax.swing.JMenuItem jMenuItem_Metar;
    private javax.swing.JMenuItem jMenuItem_Micaps;
    private javax.swing.JMenuItem jMenuItem_NetCDF;
    private javax.swing.JMenuItem jMenuItem_Particle;
    private javax.swing.JMenuItem jMenuItem_Surfer;
    private javax.swing.JMenuItem jMenuItem_Synop;
    private javax.swing.JMenuItem jMenuItem_Traj;
    private javax.swing.JMenu jMenu_ASCII;
    private javax.swing.JMenu jMenu_HYSPLIT;
    private javax.swing.JMenu jMenu_MM5;
    private javax.swing.JMenu jMenu_OpenData;
    private javax.swing.JPopupMenu.Separator jSeparator1;
    // End of variables declaration//GEN-END:variables
}
