@@ -0,0 +1,1174 @@
+import java.awt.*;%0Aimport javax.swing.*;%0A%0Apublic class GPanel extends JFrame%7B%0A%09private int duration;%0A%09JFrame window;%0A%09public GPanel(int d)%7B%0A%09%09duration=d;%0A%09%09window=new JFrame(%22Pacman%22);%0A%09%09window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);%0A%09%7D%0A%09public void showSplash()%7B%0A%09%09JPanel content = (JPanel)getContentPane();%0A%09%09content.setBackground(Color.white);%0A%09%09int width = 512;%0A%09%09int height = 512;%0A%09%09Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();%0A%09%09int x = 0;%0A%09%09int y = 0;%0A%09%09setBounds(x,y,width,height);%0A%09%09JLabel label = new JLabel(new ImageIcon(%22Splashscreen.jpg%22));%0A%09%09JLabel copyrt = new JLabel(%22Pacman%22, JLabel.CENTER);%0A%09%09copyrt.setFont(new Font(%22Sans-Serif%22, Font.BOLD, 12));%0A%09%09content.add(label, BorderLayout.CENTER);%0A%09%09content.add(copyrt, BorderLayout.SOUTH);%0A%09%09Color oraRed = new Color(156, 20, 20, 225);%0A%09%09content.setBorder(BorderFactory.createLineBorder(oraRed, 10));%0A%09%09setVisible(true);%0A%09%09try %7B Thread.sleep(duration);%7D catch (Exception e)%7B%7D%0A%09%09setVisible(false);%0A%0A%09%7D%0A%09public void showSplashAndExit()%7B%0A%09%09showSplash();%0A%09%09new Pacman();%0A%0A%09%7D%0A%09public static void main(String%5B%5D args)%7B%0A%09%09GPanel splashs = new GPanel(3500);%0A%09%09splashs.showSplashAndExit();%0A%09%7D%0A%7D%0A

Create GPanel.java