/*
 * RunNameChooser_n.java
 *
 * Created on March 17, 2006, 1:15 PM
 */

package usda.weru.weps.gui;

/**
 * This class provides the gui components for the RunNameChooser dialog.
 * @author Joseph Levin
 */
public class RunNameChooser_n extends javax.swing.JPanel {
    
    /**
     * Creates new form RunNameChooser_n, the graphical class for RunNameChooser.
     */
    public RunNameChooser_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() {

        JTF_runname = new javax.swing.JTextField();
        JTF_runlocation = new javax.swing.JTextField();
        JB_browse = new javax.swing.JButton();
        JTF_runfile = new javax.swing.JTextField();
        JL_error = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        JCB_batchMode = new javax.swing.JCheckBox();

        JB_browse.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/folder.gif"))); // NOI18N
        JB_browse.setToolTipText("Browse to run location.");
        JB_browse.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JB_browseActionPerformed(evt);
            }
        });

        JTF_runfile.setEditable(false);

        JL_error.setFont(new java.awt.Font("Tahoma", 1, 12));
        JL_error.setForeground(java.awt.Color.red);
        JL_error.setText(" ");

        jLabel1.setText("Run Name:");

        jLabel2.setText("Run Location:");

        jLabel3.setText("Run File:");

        JCB_batchMode.setText("Create Run Batch File");
        JCB_batchMode.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JCB_batchModeActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .addContainerGap()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel1)
                    .add(jLabel2)
                    .add(jLabel3))
                .add(28, 28, 28)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(JL_error, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 443, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, JCB_batchMode, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 402, Short.MAX_VALUE)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, JTF_runfile, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 402, Short.MAX_VALUE)
                            .add(JTF_runlocation, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 402, Short.MAX_VALUE)
                            .add(JTF_runname, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 402, Short.MAX_VALUE))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(JB_browse, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 27, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(8, 8, 8)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(layout.createSequentialGroup()
                        .addContainerGap()
                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jLabel1)
                            .add(JTF_runname, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jLabel2)
                            .add(JTF_runlocation, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jLabel3)
                            .add(JTF_runfile, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                        .add(JCB_batchMode))
                    .add(layout.createSequentialGroup()
                        .add(35, 35, 35)
                        .add(JB_browse)))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 9, Short.MAX_VALUE)
                .add(JL_error, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 28, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents

    /**
     * Event handler for the browse button.
     * @param evt ActionEvent from the browse button.
     */
    private void JB_browseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JB_browseActionPerformed
        JB_browse_actionPerformed(evt);
    }//GEN-LAST:event_JB_browseActionPerformed

private void JCB_batchModeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JCB_batchModeActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_JCB_batchModeActionPerformed
    
    /**
     * Event handler for the browse button.  This method is protected so it may be
     * overridden by extending classes.
     * @param evt ActionEvent from the browse button.
     */
    protected void JB_browse_actionPerformed(java.awt.event.ActionEvent evt) {
        
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    protected javax.swing.JButton JB_browse;
    protected javax.swing.JCheckBox JCB_batchMode;
    protected javax.swing.JLabel JL_error;
    protected javax.swing.JTextField JTF_runfile;
    protected javax.swing.JTextField JTF_runlocation;
    protected javax.swing.JTextField JTF_runname;
    protected javax.swing.JLabel jLabel1;
    protected javax.swing.JLabel jLabel2;
    protected javax.swing.JLabel jLabel3;
    // End of variables declaration//GEN-END:variables
    
}
