import javax.swing.*;
import javax.swing.event.*;
import javax.swing.tree.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.border.*;
import java.util.*;

class AddFile 
{
  //Stimulus Response Canvas Object
  public JButton addfile;
  
  //Dimentions for each area of the Stimulus and Pole Display
  private Dimension buttonDimension = new Dimension(100,40);
  
  /**
   * Default Constructor
   */
  public AddFile() 
  {
  }

  public AddFile(JLayeredPane layers, BevelBorder bevelL) 
  {
    //Instantiate objects
    addfile = new JButton("Add >>");
    addfile.setFont(new Font("Serif",Font.BOLD,12));
	//addfile.setBackground(Color.green);
    
    //********************************************************
    //Include the Canvas in the SRPole and set its layer
    //********************************************************
    
    layers.add(addfile);
    layers.setLayer(addfile,1);
    
    //***********************************
    //Setup properties of the SRPole
    //***********************************
    
  
    addfile.setSize(buttonDimension);
    addfile.setBounds(375,280,(int)buttonDimension.getWidth(),(int)buttonDimension.getHeight());
  
    //********************************
    //Set the Areas to a visible state
    //********************************
    
    addfile.setVisible(true);
  }
}
