Java tutorial
// // SplashScreen // // Copyright (C) by Andrea Carboni. // This file may be distributed under the terms of the LGPL license. // import java.awt.BorderLayout; import javax.swing.ImageIcon; import javax.swing.JLabel; import javax.swing.JWindow; // public class SplashScreen extends JWindow { //--------------------------------------------------------------------------- public SplashScreen(String image) { JLabel lbl = new JLabel(new ImageIcon(image)); getContentPane().add(lbl, BorderLayout.CENTER); pack(); setLocationRelativeTo(null); setVisible(true); } } //