框架 Frame
public class AwtTest {
//创建框架
public static void main(String[] args) {
Frame frame = new Frame("我的GUI");
//frame.setBounds(40,40,200,300);
frame.setBackground(Color.black);
frame.setLocation(300,100);
frame.setSize(300,300);
frame.setVisible(true);
}
}