UNB/ CS/ David Bremner/ teaching/ java/ SmileyPanel.java
import java.awt.BorderLayout;
import java.awt.Graphics;
import javax.swing.JPanel;
public class SmileyPanel extends JPanel{

    public void paintComponent(Graphics g){
        super.paintComponent(g);
        Smiley S=new Smiley(getWidth(),getHeight());
        S.draw(g,0,0);
    }

    public static void main(String[] args){
        DBFrame f=new DBFrame(300,300,new BorderLayout());
        SmileyPanel SP=new SmileyPanel();
        f.getContentPane().add(SP,"Center");
        //      f.pack();
        f.setVisible(true);
            
    }
}