<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/*
 * RunDialog_n.java
 *
 * Created on November 22, 2003, 4:09 PM
 */

package usda.weru.erosion.gui;

/**
 * This "RUN dialog" GUI shows the progress of the run's execution process.The wind 
 * generation, climate file generation and the overall WEPS model itself is being 
 * monitored here.
 * @author  manmohan
 */
public class RunDialog_n extends javax.swing.JDialog {
    private static final long serialVersionUID = 1L;
    
   /**
    * Default constructor for the Run Dialog GUI object that helps the user in
    * getting to know how long will the run take to be executed before all the 
    * reports are generated. 
    * It also initializes the components that go in the GUI with default settings.
    */
    public RunDialog_n() {
        // this((Frame)null); // Donno whether this will work
    }

   /**
    * Single argument constructor for the Run Dialog GUI object that helps the user in
    * getting to know how long will the run take to be executed before all the 
    * reports are generated. 
    * It also initializes the components that go in the GUI with default settings.
    * @param parent The handle to the parent frame in which the dialog resides.
    */
    public RunDialog_n(java.awt.Frame parent) {
        super(parent);
        initComponents();
    }
    
   /**
    * Single argument constructor for the Run Dialog GUI object that helps the user in
    * getting to know how long will the run take to be executed before all the 
    * reports are generated.
    * It also initializes the components that go in the GUI with default settings.
    * @param title The title string for the parent frame of the GUI.
    */
    public RunDialog_n(java.lang.String title) {
        this();
        setTitle(title);
    }
    
    
    /** 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.
     */
    // &lt;editor-fold defaultstate="collapsed" desc=" Generated Code "&gt;//GEN-BEGIN:initComponents
    private void initComponents() {
        JP_main = new javax.swing.JPanel();
        JLabel3 = new javax.swing.JLabel();
        JB_can = new javax.swing.JButton();
        JTF_status = new javax.swing.JTextField();

        getContentPane().setLayout(null);

        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        setTitle("RunDialog_n");
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                RunDialog_n_WindowClosing(evt);
            }
        });

        JP_main.setLayout(null);

        JLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        JLabel3.setText("Erosion Model running");
        JP_main.add(JLabel3);
        JLabel3.setBounds(10, 10, 200, 19);

        JB_can.setText("Cancel");
        JB_can.setToolTipText("RunDialog : Cancel");
        JB_can.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JBCan_ActionPerformed(evt);
            }
        });

        JP_main.add(JB_can);
        JB_can.setBounds(70, 80, 90, 23);

        JTF_status.setEditable(false);
        JTF_status.setHorizontalAlignment(javax.swing.JTextField.LEFT);
        JP_main.add(JTF_status);
        JTF_status.setBounds(10, 40, 200, 19);

        getContentPane().add(JP_main);
        JP_main.setBounds(5, 5, 215, 130);

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-233)/2, (screenSize.height-175)/2, 233, 175);
    }
    // &lt;/editor-fold&gt;//GEN-END:initComponents

    private void JBCan_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JBCan_ActionPerformed
        JBCan_actionPerformed(evt);
    }//GEN-LAST:event_JBCan_ActionPerformed

    private void RunDialog_n_WindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_RunDialog_n_WindowClosing
        this.dispose();
    }//GEN-LAST:event_RunDialog_n_WindowClosing
    
  /**
   * This method is used if this dialog is rum as an independent application. If executed,
   * makes the GUI visible.
   * @param evt The cancel button event is generated if the "Run dialog" is to be 
   * closed and the run itself "cancelled".
   */
    void JBCan_actionPerformed(java.awt.event.ActionEvent evt) {
        
    }
    
  /**
   * This method is used if this dialog is rum as an independent application. If executed,
   * makes the GUI visible.
   * @param args These are the command line arguments passed to the main method.
   */
    public static void main(String args[]) {
        new RunDialog_n(new javax.swing.JFrame()).setVisible(true);
    }
    
    /**
     * This method notifies when the window or frame is resized and the components 
     * need to be re-arranged so they are evenly spaced relative to each other.
     */
    @Override
    public void addNotify() {
        super.addNotify();
    }    
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    public javax.swing.JButton JB_can;
    public javax.swing.JLabel JLabel3;
    public javax.swing.JPanel JP_main;
    public javax.swing.JTextField JTF_status;
    // End of variables declaration//GEN-END:variables
    
}
</pre></body></html>