1 25 package org.jrobin.mrtg.client; 26 27 import org.jrobin.mrtg.MrtgException; 28 29 import javax.swing.*; 30 import java.awt.*; 31 32 39 class SplashWindow extends JWindow { 40 SplashWindow() { 41 JLabel imageLabel = new JLabel(); 42 try { 43 imageLabel.setIcon(Resources.getImageIcon(Client.RESOURCE_PATH + "logo.png")); 44 } catch (MrtgException e) { 45 } 47 imageLabel.setBorder(BorderFactory.createLineBorder(Color.BLUE, 1)); 48 getContentPane().add(imageLabel); 49 pack(); 50 Util.centerOnScreen(this); 51 setVisible(true); 52 } 53 54 void close() { 55 dispose(); 56 } 57 } 58 | Popular Tags |