import java.awt.*;public class FrameWithPanle extends Frame {
  public static void main(String args[]) {
    FrameWithPanle fr = new FrameWithPanel("Hello !");
    fr.setSize(200,200);
    fr.setBackground(Color.blue);
    fr.setLayout(new GridLayout(2,1));    Panel pan = new Panle();
    pan.setSize(200,100);
    pan.setBackground(Color.yellow);
    pan.addButton(new Button("确定"));
    fr.add(pan);    fr.setVisible(true);
  }
  
  public FrameWithPanel(String str) {
    super(str);
  }
}