【汇智学堂】JAVA多线程实现的小游戏-弹球-1

/**
 * 定义界面
 */

package com.huizhi;

import javax.swing.*;
import java.awt.*;

public class Ui extends JFrame {
    public Ui() {
        setTitle("弹球游戏");
        setBackground(Color.WHITE);
        setSize(900, 600);
        setLocation(300, 50);
        setResizable(false);
        setVisible(true);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
    }
}

发布了268 篇原创文章 · 获赞 47 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/weixin_39593940/article/details/103612759
今日推荐