package leaf;

import java.awt.Color;

import javax.swing.JPanel;

public class LeafGradientPanel extends JPanel
{
	private static final long serialVersionUID = 1L;
	
	public LeafGradientPanel()
	{
		setBackground( new Color(200,200,200) );
	}

//	@Override
//	public void paintComponent( Graphics g )
//	{
//		Graphics2D g2d = (Graphics2D) g;
//		GradientPaint gradientIn = new GradientPaint( 0, 0, getBackground(), getWidth()/2, 0, Color.DARK_GRAY );
//		g2d.setPaint( gradientIn );
//		g2d.fillRect( 0, 0, getWidth()/2, getHeight() );
//		
//		GradientPaint gradientOut = new GradientPaint( getWidth()/2, 0, Color.DARK_GRAY, getWidth(),0, getBackground() );
//		g2d.setPaint( gradientOut );
//		g2d.fillRect( getWidth()/2, 0, getWidth(), getHeight() );
//	}
}
