/*
 * ResetRunLocationPanel_n.java
 *
 * Created on August 15, 2006, 11:08 AM
 */

package usda.weru.util.gui;

/**
 *
 * @author  joelevin
 */
public class ResetRunLocationPanel_n extends javax.swing.JPanel {
    
    /** Creates new form ResetRunLocationPanel_n */
    public ResetRunLocationPanel_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() {
        g_resetButton = new javax.swing.JButton();
        g_textLabel = new javax.swing.JLabel();

        g_resetButton.setText("Reset to Default");
        g_resetButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                g_resetButtonActionPerformed(evt);
            }
        });

        g_textLabel.setFont(new java.awt.Font("Dialog", 0, 10));
        g_textLabel.setText("<html>Each WEPS project stores runs in a run location.  This location may be set on a per project basis.  The button below will reset this project's run location to the configured system default.  This default may be changed from within the configuration panel.</html>");
        g_textLabel.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, g_textLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 153, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, g_resetButton, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 153, Short.MAX_VALUE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
                .add(g_textLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(g_resetButton))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void g_resetButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_g_resetButtonActionPerformed
        resetButtonActionPerformed(evt);
    }//GEN-LAST:event_g_resetButtonActionPerformed
    
    protected void resetButtonActionPerformed(java.awt.event.ActionEvent evt) {

    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    protected javax.swing.JButton g_resetButton;
    protected javax.swing.JLabel g_textLabel;
    // End of variables declaration//GEN-END:variables
    
}
