神末shenmo
deepin
2022-06-01 06:54 Spark-App
Q&A Team
对了,livecd的版本信息可以修改哦
看这里
https://bbs.deepin.org/post/237500
Reply Like 0 View the author
对了,livecd的版本信息可以修改哦
看这里
https://bbs.deepin.org/post/237500
对了,livecd的版本信息可以修改哦
看这里
https://bbs.deepin.org/post/237500
好的,full版本会改一下试试
不过目前晒的install版就不会修改live cd信息

学习一下~
package game;
import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.*;
import java.awt.image.BufferedImage;
//游戏界⾯
public class BirdGame extends JPanel {
//背景图⽚
BufferedImage background;
//初始化游戏
public BirdGame() throws Exception {
//初始化背景图⽚
background = ImageIO.read(getClass().getResource("/resources/bg.png"));
}
//绘制界⾯
public void paint(Graphics g){
//绘制背景
g.drawImage(background,0,0, null);
}
//启动⽅法
public static void main(String[] args) throws Exception {
JFrame frame = new JFrame();//创建窗⼝,JFrame是屏幕上window的对象,能放⼤、缩⼩、关闭。
BirdGame game = new BirdGame();
frame.add(game);
frame.setSize(440,670);
frame.setLocationRelativeTo(null);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);//设置窗⼝
frame.setVisible(true);//显⽰窗⼝
}Popular Ranking
ChangePopular Events
More
此为水帖,放张目前搞出来的图(还没有做完)


