import java.awt.*;
import javax.swing.*:

public class GPanel extends JFrame {
	private int duration;
	JFrame window;


	public Gpanel(int g){
		duration =d;
		window = new JFrame("PacMan");
		window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
	public void showSplash(){
		JPanel content =(Jpanel)getContentPanel();
		content.setBackground(Color.white);

		int width=600;
		int height=800;
		Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();

		int x=0;
		int y=0;
		setBounds(x,y,widht,height);

		
}		
}


Create GPanel.java