📄 chartsplash.java
字号:
package shyhao.splash;
import java.awt.Color;
import java.awt.Cursor;
import javax.swing.JLabel;
import javax.swing.JWindow;
import shyhao.publicsources.ResIconImage;
public class ChartSplash implements Splash {
private JWindow splashWindow = null;
public ChartSplash() throws Exception {
initSplash();
}
public void initSplash() throws Exception {
splashWindow = new JWindow();
JLabel label_view = new JLabel();
label_view.setIcon(ResIconImage.getIcon(ChartSplash.class,
"/images/splash.JPG"));
label_view.setBackground(Color.white);
label_view.setOpaque(true);
splashWindow.add(label_view, "Center");
splashWindow.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
splashWindow.pack();
splashWindow.setLocationRelativeTo(null);
}
public void startSplash() throws Exception {
splashWindow.setVisible(true);
splashWindow.toFront();
}
public void stopSplash() throws Exception {
splashWindow.dispose();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -