chartsplash.java

来自「java检测程序系统java检测程序系统」· Java 代码 · 共 46 行

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