forked from Coded/SIPRP
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
763 B
29 lines
763 B
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(220,220,220) );
|
|
}
|
|
|
|
// @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() );
|
|
// }
|
|
}
|