splash.java

来自「it is basic library management」· Java 代码 · 共 25 行

JAVA
25
字号
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 + =
减小字号Ctrl + -
显示快捷键?