learning AWT Jrame

import java.awt.*;

public class FrameTest {
    public static void main(String[] args) {
        var f = new Frame("测试窗口");
        f.setBounds(30,30,250,300);
        f.setVisible(true);

    }
}

result:

posted @ 2019-07-30 09:14  嵌入式实操  阅读(114)  评论(0编辑  收藏  举报