/*
 * java.WindGen_n
 *
 * Created on July 25, 2005, 1:52 PM
 */

package usda.weru.util.gui;

/**
 *
 * @author  wjr
 */
public class WindGen_n extends javax.swing.JFrame {
    
    /** Creates new form WindGen_n */
    public WindGen_n() {
        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.
     */
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
    private void initComponents() {
        JP_main = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();
        JCB_stationName = new javax.swing.JComboBox();
        jLabel1 = new javax.swing.JLabel();
        JTF_threshold = new javax.swing.JTextField();
        JL_Threshold = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        JL_Elevation = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        JL_avgEng = new javax.swing.JLabel();
        jcTable = new com.klg.jclass.table.beans.LiveTable();

        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Wind Generator Station Data Display");
        setMaximizedBounds(new java.awt.Rectangle(0, 0, 500, 300));
        setResizable(false);
        addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentResized(java.awt.event.ComponentEvent evt) {
                formComponentResized(evt);
            }
        });

        jLabel3.setText("Station");
        JP_main.add(jLabel3);

        JCB_stationName.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Select a station" }));
        JCB_stationName.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JCB_stationNameActionPerformed(evt);
            }
        });

        JP_main.add(JCB_stationName);

        jLabel1.setLabelFor(JL_Threshold);
        jLabel1.setText("Threshold");
        JP_main.add(jLabel1);

        JTF_threshold.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        JTF_threshold.setText("8");
        JTF_threshold.setMinimumSize(new java.awt.Dimension(30, 19));
        JTF_threshold.setPreferredSize(new java.awt.Dimension(30, 19));
        JTF_threshold.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JTF_thesholdActionPerformed(evt);
            }
        });
        JTF_threshold.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                JTF_thresholdFocusLost(evt);
            }
        });

        JP_main.add(JTF_threshold);

        JL_Threshold.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        JL_Threshold.setText("m/s ");
        JP_main.add(JL_Threshold);

        jLabel2.setLabelFor(JL_Elevation);
        jLabel2.setText("Elevation");
        JP_main.add(jLabel2);

        JL_Elevation.setText("n/s");
        JP_main.add(JL_Elevation);

        jLabel5.setText("Avg Energy");
        JP_main.add(jLabel5);

        JL_avgEng.setText("0");
        JP_main.add(JL_avgEng);

        getContentPane().add(JP_main, new org.netbeans.lib.awtextra.AbsoluteConstraints(8, 1, 730, 40));

        jcTable.setAllowCellResize(com.klg.jclass.table.JCTableEnum.RESIZE_NONE);
        jcTable.setMinCellVisibility(30);
        jcTable.setSelectionPolicy(com.klg.jclass.table.JCTableEnum.SELECT_SINGLE);
        getContentPane().add(jcTable, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 40, 720, 150));

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-751)/2, (screenSize.height-261)/2, 751, 261);
    }
    // </editor-fold>//GEN-END:initComponents

    protected void JTF_thresholdFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_JTF_thresholdFocusLost
    }//GEN-LAST:event_JTF_thresholdFocusLost

    protected void JTF_thesholdActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JTF_thesholdActionPerformed
    }//GEN-LAST:event_JTF_thesholdActionPerformed

    protected void formComponentResized(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_formComponentResized
    }//GEN-LAST:event_formComponentResized

    protected void JCB_stationNameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JCB_stationNameActionPerformed
    }//GEN-LAST:event_JCB_stationNameActionPerformed
    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new WindGen_n().setVisible(true);
            }
        });
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    public javax.swing.JComboBox JCB_stationName;
    protected javax.swing.JLabel JL_Elevation;
    protected javax.swing.JLabel JL_Threshold;
    protected javax.swing.JLabel JL_avgEng;
    protected javax.swing.JPanel JP_main;
    protected javax.swing.JTextField JTF_threshold;
    protected javax.swing.JLabel jLabel1;
    protected javax.swing.JLabel jLabel2;
    protected javax.swing.JLabel jLabel3;
    protected javax.swing.JLabel jLabel5;
    public com.klg.jclass.table.beans.LiveTable jcTable;
    // End of variables declaration//GEN-END:variables
    
}
