/*
 * StatusDialog_n.java
 *
 * Created on February 4, 2005, 3:22 PM
 */

package usda.weru.mcrew.gui;

/**
 * This class brings up the dialog box that holds the status bar.
 * @author  Neha, Manmohan
 */
public class StatusDialog_n extends javax.swing.JDialog {
    private static final long serialVersionUID = 1L;
    
    /**
     * Creates new form StatusDialog_n
     * @param parent The address of the parent object that hold this dialog.
     * @param modal If true, only this dialog can be accessed while its visible 
     * else others can be accessed too.
     */
        public StatusDialog_n(java.awt.Frame 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.
     */
    private void initComponents() {//GEN-BEGIN:initComponents
        JP_main = new javax.swing.JPanel();
        JTF_status = new javax.swing.JTextField();
        JPB_mcrew = new javax.swing.JProgressBar();

        getContentPane().setLayout(null);

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

        JP_main.setLayout(null);

        JTF_status.setEditable(false);
        JTF_status.setHorizontalAlignment(javax.swing.JTextField.LEFT);
        JP_main.add(JTF_status);
        JTF_status.setBounds(20, 20, 210, 20);

        JP_main.add(JPB_mcrew);
        JPB_mcrew.setBounds(20, 50, 210, 25);

        getContentPane().add(JP_main);
        JP_main.setBounds(5, 5, 400, 300);

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-271)/2, (screenSize.height-154)/2, 271, 154);
    }//GEN-END:initComponents

    private void statusDialog_windowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_statusDialog_windowClosing
         this.dispose();
    }//GEN-LAST:event_statusDialog_windowClosing
    
    /**
     * This method is used if this dialog is rum as an independent application
     * @param args These are the command line arguments passed to themain method.
     */
    public static void main(String args[]) {
        new StatusDialog_n(new javax.swing.JFrame(), true).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.JProgressBar JPB_mcrew;
    public javax.swing.JPanel JP_main;
    public javax.swing.JTextField JTF_status;
    // End of variables declaration//GEN-END:variables
    
}
