📄 splash.java
字号:
import javax.swing.*;
import java.awt.*;
public class Splash implements Runnable, mainInterface{
private String initMsg;
public Splash(String initMsg) {
this.initMsg = initMsg;
}
public void run() {
splashWindow.getContentPane().add(l, BorderLayout.CENTER);
splashWindow.pack();
splashWindow.setSize(splashWindow.getSize().width, splashWindow.getSize().height);
splashWindow.setLocation(dim.width/2 - splashWindow.getWidth() /2,dim.height/2 -
splashWindow.getHeight()/2);
splashWindow.toFront();
splashWindow.show(); }
public JWindow getWindow()
{
return splashWindow;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -