public class FrameTest {
public static void main(String args[]){
Frame frame = new Frame("myWindow"); //创建一个窗体类
frame.setBackground(Color.blue);
frame.setSize(600,200); //设置大小
frame.setLocation(400,400
JAVA GUI之创建简单的窗口
最新推荐文章于 2024-02-19 20:15:19 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)