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: