import java.awt.*;
import javax.swing.*;public class Test {
public static void main(String args[]) {
JFrame f = new JFrame("My Test");
Container ct = new Container();
JButton bn = new JButton("BN");
JButton bs = new JButton("BS");
JButton bw = new JButton("BW");
JButton be = new JButton("BE");
JButton bc = new JButton("BC");

ct.add(bn, "North");
ct.add(bs, "South");
ct.add(bw, "West");
ct.add(be, "East");
ct.add(bc, "Center"); f.setBackground(Color.BLACK);
f.setLocation(400,200); 
f.setSize(400,400);
f.setVisible(true);
}
}为什么加不上按钮呢?
还有背景颜色为什么不是黑色的?
谢谢