📄 splashwindow1.java
字号:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
class SplashWindow1 extends JWindow {
public SplashWindow1(String filename, JFrame f) {
super(f);
//this.add(f);
f.setSize(300,300);
//f.show();
JLabel l = new JLabel(new ImageIcon(filename));
this.getContentPane().add(l, BorderLayout.CENTER);
this.show();
}
public static void main(String[] args) {
JFrame f = new JFrame("lll");
new SplashWindow1("chying",f);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -