//TransGeneratorPanel
/* A Java class for
 * LossyWide.java
 * Electromagnetic Transmission Line Applet
*/
import java.awt.*;

public class BackCenterPanel extends Panel{
   
    protected CheckboxGroup cgrp;
    private Trans_State state;
    private static final Color bgcolor = new Color(236,236,236);
    private static final Color tinta = new Color(236,236,236);
    
    public BackCenterPanel(){
	super();
	setLayout(null);
	setBackground(bgcolor);
    }
    
    public void paint(Graphics g){
            Graphics2D g2d = (Graphics2D)g;
            g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
                
            g.clearRect(0,0,getSize().width,getSize().height);
	    g.setColor(bgcolor.darker());
	    g.fillRect(0,getSize().height-2,getSize().width,2);
	    g.fillRect(getSize().width-2,0,2,getSize().height);
	    g.setColor(bgcolor.brighter());
	    g.fillRect(0,0,2,getSize().height-1);
	    g.fillRect(0,0,getSize().width-2,2);
    }
}