package usda.weru.mcrew;


/** 
 * author : Sudhir Kaul, Sada, Manmohan Uttarwar
 * date : Dec 2002, July 2003, April 2005
 */

import usda.weru.util.About;

/**
 * This class creates the configuration frame and sets the column config according to the checked boxes
 * The visual code is derived from ConfigFrame_b.java class
 */
public class ConfigFrame extends usda.weru.mcrew.gui.ConfigFrame_n{
    private static final long serialVersionUID = 1L;

    private final String columnConfig; // Unused currently
    private char[] data;


    /**
     * Constructor for the class configuration frame which also sets the image of 
     * weruface icon on the frame's title bar.
     * @param str The congiuration columns
     */    
    public ConfigFrame(String str){
          columnConfig = str;
         
          //Setting the Icon Image in the title bar
          setIconImage(About.getWeruIconImage());
    }   
    
    /**
     * Cancel button ActionPerformed event that interpretes that event has occured 
     * and closes the window that hosts the configuration frame.
     */
    @Override
    public void JB_cancel_actionPerformed(java.awt.event.ActionEvent evt) {
        this.dispose();
    }

    /**
     * OK button ActionPerformed event that interpretes that OK button was pressed
     * and closes the window that hosts the configuration frame.
     */
    @Override
   public void JB_OK_actionPerformed(java.awt.event.ActionEvent evt) {
        this.dispose();
   }
    
}
