public void splash()
	{
		//create the splash screen
		try
		{
			panel.add(new JPanel()
			{
				private static final long serialVersionUID = 1L;
				private Image image = ImageIO.read(this.getClass().getResource("splash screen.png"));
				protected void paintComponent(Graphics g) {
					int sourceWidth = image.getWidth(null),
							sourceHeight = image.getHeight(null),
							destinationWidth = getWidth(),
							destinationHeight = getHeight();

					super.paintComponent(g);
					g.drawImage(image, 0, 0, destinationWidth, destinationHeight, 0, 0, sourceWidth, sourceHeight, null);
					g.dispose();
				}
			}, BorderLayout.CENTER);
		}
		catch(IOException e){}
	}