/* Copyright Andy C. Deck 1999 All rights reserved. */    
import java.awt.*;

public class label extends Canvas {

String str = "";

    public label(String s){
	super();
	str = s;
    }

    public void paint(Graphics g){
        g.setColor(Color.darkGray);
        g.fillRect(0,0,this.size().width,this.size().height); 
	g.setColor(Color.gray);
	g.drawString(str,8,20);
    }

    public void setText(String s){
	if(s != null) str = s;
	repaint();
    }
	
    public String getText(){
	return str;
    }
}
	
