⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aboutframe.java

📁 SIMULATION FOURMILIERE -3D-ISOMETRIQUE
💻 JAVA
字号:
package fr.umlv.fourmIR2000.frame;

import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JLabel;

final class AboutFrame {

	private AboutFrame() {
		/* nothing */
	}

	/**
	 * Create a new About frame
	 * @param parent	the parent of this frame
	 * @param title		the title of the window
	 */
	static void showAbout(final JFrame parent, final String title) {

		// Creation of the frame
		final JDialog f = new JDialog(parent, title, true);
		
		// SplashScreen
		try {
			final ImageIcon splash = new ImageIcon(ImageIO.read(AboutFrame.class.getResourceAsStream("/resources/pictures/splash.jpg")));
			final JLabel img = new JLabel(splash);
			img.setBounds(0, 0, splash.getIconWidth(), splash.getIconHeight());
			f.add(img);
			f.setSize(img.getSize());
			f.setResizable(false);

		} catch (IOException ioe) {
			ioe.printStackTrace();
		}
		
		f.setLocationRelativeTo(null);
		f.setVisible(true);
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -