//===========================================================
//	Lukas Valine, February 13 2015, Vowel Project			|
//===========================================================
//  The *BUTTON* class
//-----------------------------------------------------------

package View;
import java.awt.Color;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.Insets;
import javax.swing.JButton;
import javax.swing.JPanel;

public class VButton extends JPanel{
	private static final long serialVersionUID = 1L;
	private JButton aButton;
	
//===================
//	 CONSTRUCTOR	| 
	public VButton(String name){
	
		
		setLayout(new GridBagLayout());
		Color theColor = new Color(243,80,80);
		setLayout(new GridBagLayout());
		
		GridBagConstraints c = new GridBagConstraints();
		
		c.fill = GridBagConstraints.BOTH;
		c.weightx = 1;
		c.weighty = 1;
		
		setBackground(theColor);
		
		aButton = new JButton(name); 
		aButton.setBorder(null);
		aButton.setBackground(theColor);
		add(aButton, c);}
// END CONSTRUCTOR	| 
//===================

	public JButton getButton(){return aButton;}
	
}

